Skip to content

The easy way to obtain Let's encrypt certificate using DNS verification

Notifications You must be signed in to change notification settings

sugdyzhekov/dehydrated-selectel-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Docker image to fetch Let's Encrypt SSL certificate using DNS acme challenge via Selectel DNS. Following projects were used:

Prerequisites

How to use

Dry run:

docker run -e CA="https://acme-staging.api.letsencrypt.org/directory" \
    -e SELECTEL_TOKEN='XXXXX' \
    -v $(pwd)/certificates:/workbench sugdyzhekov/dehydrated-selectel-dns \
    -d example.com -d www.example.com

Run

docker run -e -e SELECTEL_TOKEN='XXXXX' \
    -v $(pwd)/certificates:/workbench sugdyzhekov/dehydrated-selectel-dns \
    -d example.com -d www.example.com

Check certifcates directory to obtain your certificates. You may repeat command to renew certificate. Feel free to add it in your cron task list.

Systemd

You may want to schedule update invocation. If your system uses systemd then you may use unit files from the project repository

  • update-certificates.service
  • update-certificates.timer

Setup

  1. Create /etc/selectel.token file:
SELECTEL_TOKEN=XXXXX
  1. Copy update-certificates.service & update-certificates.timer to /etc/systemd/system directory
  2. Edit update-certificates.service and specify your domains into the last row
  3. Activate timer:
systemctl enable update-certificates.timer

About

The easy way to obtain Let's encrypt certificate using DNS verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published