Skip to content

Provides a hook for updating nsd zones with certbot DNS authentification (required for wildcard domains)

License

Notifications You must be signed in to change notification settings

lpummer/certbot-nsd-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Provides a hook for updating nsd zones with certbot DNS authentification (required for wildcard domains)

Dependencies

  • python-dnspython

Setup

cerbot

Install the certbot-nsd-hook script and then call certbot as follows:

cerbot certonly \
       -d '*.yourdomain.com'  \
       --manual  \
       --manual-auth-hook="/opt/certbot-nsd-hook/nsd-update-dns.py" \
       --post-hook="systemctl reload apache2"
  • -d ... the domain for which you require the certificate
  • --manual-auth-hook ... location of the nsd-update-dns.py script
  • --post-hook ... command used for reloading your web server

The script asumes that the nsd config file is available at /etc/nsd/nsd.conf.

NSD zone file

  • must contain a valid DNS and SOA record (required by python-dnspython)
  • should contain a TXT record that is then used for updating the acme challenge
    _acme-challenge 60 IN TXT "dummy"
    

About

Provides a hook for updating nsd zones with certbot DNS authentification (required for wildcard domains)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%