Pre and Post Validation Hooks DNS for manual mode of certbot with GoDaddy domains
This repository contains pre and post validation hooks to be used with certbot command in manual mode to certify a GoDaddy Domains with DNS-01 method.
More informations are available on Certbot Doc
This script is a shell script based on /bin/sh.
It uses following command tools :
curl
host
It depends on several packages :
yum install curl
- Download this script on your system
- Replace SHELL variables
API_KEY,API_SECRETandDOMAINin this script to match them with yours values - Run
certbotinmanual modewith this two scripts as arguments :
certbot certonly --manual --preferred-challenges=dns --manual-auth-hook ./authenticator_godaddy.sh --manual-cleanup-hook ./cleanup_godaddy.sh -d $YOUR_DOMAIN
- If
certbotreturn success, you would get your new certificate on your system
If you have any problems, you can run separately this script.
For authenticator_godaddy.sh, you must uncomment the line 17 to set manually $CERTBOT_VALIDATION variable.
However, the line 17 must be commented in normal mode because $CERTBOT_VALIDATION variable is defined by certbot command.
- macSierra
- CentOS 7