Skip to content

Autorenew LetsEncrypt certificates with Certbot DNS-01 on NameSilo DNS

License

Notifications You must be signed in to change notification settings

joshp23/NameSilo_Certbot-DNS-01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NameSilo_Certbot-DNS-01

Hook script helpers for obtaining LetsEncrypt certificates, using Certbot with manual DNS-01 validation against NameSilo DNS.

Dependency

Make sure that you have xmllint installed on your system. On Ubuntu:

 $ apt-get install libxml2-utils

Example Setup

Add your NameSilo API key to at the top of config.sh and create a writable tmp folder in the directory that this file is in.

To make this the default setting for Certbot, add the following to your Certbot config at /etc/letsencrypt/cli.ini

server = https://acme-v02.api.letsencrypt.org/directory
authenticator = manual
preferred-challenges = dns-01
manual_auth_hook = /path/to/hook.sh
manual-cleanup-hook /path/to/cleanup.sh

Note: The server above must be set for DNS validation.

Another option is to just add the hook scripts along with any other options when calling Certbot like so:

$ certbot renew --manual-auth-hook /path/to/hook.sh --manual-cleanup-hook /path/to/cleanup.sh

Note: There is a 15 minute wait for DNS propagation.

Debug data will be printed in case of error response from NameSilo.

Support Dev

All of my published code is developed and maintained in spare time, if you would like to support development of this, or any of my published code, I have set up a Liberpay account for just this purpose. Thank you.

Donate using Liberapay