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

alisade/letsencrypt-DNSMadeEasy-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 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/alisade/letsencrypt-dnsmadeeasy-hook hooks/dnsmadeeasy
$ pip install -r hooks/dnsmadeeasy/requirements.txt
$ export DME_API_KEY='52381b5f-a2e6-4158-bf2d-95537ce13477'
$ export DME_SECRET_KEY='e6a44469-2a9b-4157-ae24-b8dfd2bf8053'

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%