Last active
November 13, 2019 17:05
-
-
Save UnixSage/43c91aaa8e1824a5d6de70b2cb216e37 to your computer and use it in GitHub Desktop.
Script to use with CertBot's --manual-auth-hook switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TOKEN="Your-Duck-DNS-Token" | |
BASEDOMAIN=`echo ${CERTBOT_DOMAIN} | awk -F. '{OFS="."; print $(NF-1),$(NF)}'` | |
echo $CERTBOT_DOMAIN | |
curl "https://www.duckdns.org/update?domains=${CERTBOT_DOMAIN}&token=${TOKEN}&txt=${CERTBOT_VALIDATION}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment