Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.28 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.28 KB

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.