Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| misc:scripts:letsencrypt-bookmyname-dnschallenge [2020/12/14 16:19] – jaxx | misc:scripts:letsencrypt-bookmyname-dnschallenge [2022/11/03 09:36] (current) – jaxx | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| === BookMyName hooks for LE-Certbot === | === BookMyName hooks for LE-Certbot === | ||
| - | The following scripts can be used as hooks to authenticate domains hosted by [[https:// | + | The following |
| < | < | ||
| Line 15: | Line 15: | ||
| <file bash bmn-JXXXXX-auth.sh> | <file bash bmn-JXXXXX-auth.sh> | ||
| #!/bin/bash | #!/bin/bash | ||
| + | |||
| + | # public DNS servers might be less sticky than ISP ones | ||
| + | DNSSERVER=" | ||
| BMN_USER=" | BMN_USER=" | ||
| Line 44: | Line 47: | ||
| ((loopcount=loopcount+1)) | ((loopcount=loopcount+1)) | ||
| echo -n "Try number $loopcount ..." | echo -n "Try number $loopcount ..." | ||
| - | recordset=$(dig _acme-challenge.$DOMAIN TXT +short | tr -d " | + | recordset=$(dig |
| echo -n "Found ' | echo -n "Found ' | ||
| if [[ $recordset == $CERTBOT_VALIDATION ]] | if [[ $recordset == $CERTBOT_VALIDATION ]] | ||