Skip to content

Allows you to use DNSMadeEasy with letsencrypt.sh and DNS challenge response

License

Notifications You must be signed in to change notification settings

thedmi/letsencrypt-DNSMadeEasy-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnsmadeeasy hook for letsencrypt.sh ACME client

This a hook for the Let's Encrypt ACME client dehydrated (formerly letsencrypt.sh), that enables using DNS records on dnsmadeeasy to respond to dns-01 challenges. Requires Python 3 and your dnsmadeeasy account apikey and secretkey being set in the environment.

Setup

$ git clone https://github.com/lukas2511/dehydrated
$ cd dehydrated
$ mkdir hooks
$ git clone https://github.com/thedmi/letsencrypt-dnsmadeeasy-hook hooks/dnsmadeeasy
$ pip install -r hooks/dnsmadeeasy/requirements.txt
$ export DME_API_KEY='YOUR_API_KEY_HERE'
$ export DME_SECRET_KEY='YOUR_SECRET_KEY_HERE'

Usage

$ ./dehydrated -c -d example.com -t dns-01 -k 'hooks/dnsmadeeasy/hook.py'
#
# !! WARNING !! No main config file found, using default config!
#
Processing example.com
 + Signing domains...
 + Creating new directory /home/user/dehydrated/certs/example.com ...
 + Generating private key...
 + Generating signing request...
 + Requesting challenge for example.com...
 + dnsmadeeasy hook executing: deploy_challenge
 + DNS not propagated, waiting 30s...
 + Responding to challenge for example.com...
 + dnsmadeeasy hook executing: clean_challenge
 + Challenge is valid!
 + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + dnsmadeeasy hook executing: deploy_cert
 + ssl_certificate: /home/user/dehydrated/certs/example.com/fullchain.pem
 + ssl_certificate_key: /home/user/dehydrated/certs/example.com/privkey.pem
 + Done!

About

Allows you to use DNSMadeEasy with letsencrypt.sh and DNS challenge response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%