Skip to content

An auth hook for Certbot to allow DNS validation against domains with their DNS hosted with Vultr.

Notifications You must be signed in to change notification settings

solrex/certbot-vultr-dns-auth-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

certbot-vultr-dns-auth-hook

This is an "auth hook" for Certbot that enables you to perform DNS-01 authorization via Vultr's DNS service.

All it requires is that you have your Vultr API key, and that you have set your domain up as a zone in Vultr.

Usage

These instructions assume you are on a shell as the root user.

  1. Make sure you have python and python-requests installed, in addition to Certbot.
  2. Download vultr-dns.py somewhere onto your server. In this example, we will use /etc/letsencrypt/vultr-dns.py as the location.
  3. chmod 0700 /etc/letsencrypt/vultr-dns.py && chown root:root /etc/letsencrypt/vultr-dns.py
  4. Modify the configuration section of /etc/letsencrypt/vultr-dns.py :
# Configure here
VULTR_API_KEY = "put your api key here"
VULTR_BIND_DELAY = 30
  1. Try issue a certificate now. With the default configuration, there will be a 30 second delay per domain on the certificate.
certbot certonly --manual \
--manual-auth-hook "/etc/letsencrypt/vultr-dns.py create" \
--manual-cleanup-hook "/etc/letsencrypt/vultr-dns.py delete" \
-d "*.my.domain.example.com" -d "*.example.com" \
--preferred-challenges dns-01
  1. If this succeeds, so should automatic renewal.

About

An auth hook for Certbot to allow DNS validation against domains with their DNS hosted with Vultr.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%