From 7ce8af690fdb50adeea5b71c95947d0dbee4fe6f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 10 Apr 2021 14:07:43 +0530 Subject: [PATCH] Fixes certbot acme validation reset --- scripts/certbot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/certbot.sh b/scripts/certbot.sh index 754f38d2d..f8809e4a1 100755 --- a/scripts/certbot.sh +++ b/scripts/certbot.sh @@ -74,15 +74,16 @@ upload_acme_file() { } reset_acme() { - update_record remove A 'www.is-a.dev' "68.65.123.44"; + update_record remove A 'www' "68.65.123.44"; sleep 1; - update_record add CNAME 'www.is-a.dev' "is-a-dev.github.io"; + update_record add CNAME 'www' "is-a-dev.github.io"; } case "$1" in check) echo "TXT record:: $(dig +noall +answer _acme-challenge.is-a.dev TXT | awk '{print $5}')"; ;; + config_www) update_www_record ;; acme_txt) update_acme_txt_record "$2" ;; acme_file) upload_acme_file "$2" "$3" ;; cert) generate_certificate ;; @@ -95,6 +96,7 @@ esac # Run ./scripts/certbot.sh cert # Run ./scripts/certbot.sh acme_txt "" # Run ./scripts/certbot.sh acme_file "" "" +# Run ./scripts/certbot.sh config_www # Upload cert.pem and privkey.pem contents to SSL > Manage SSL Sites # Run ./scripts/certbot.sh reset