My domain is: pacificcape.com
I ran this command:
certbot certonly --manual --preferred-challenges dns
–work-dir $CBDIR/var/lib/letsencrypt --logs-dir $CBDIR/var/logs/letsencrypt --config-dir $CBDIR/etc/letsencrypt
–cert-name pacificcape.com -d pacificcape.com,www.pacificcape.com
It produced this output:
1st trial:
Domain: pacificcape.com
Type: unauthorized
Detail: Incorrect TXT record
“4XfJz1tz1Lk42rPZ7E_irl-wprIe8iRsrCkkEeavHMc” (and 1 more) found at
_acme-challenge.pacificcape.com
Domain: www.pacificcape.com
Type: unauthorized
Detail: No TXT record found at _acme-challenge.www.pacificcape.com
2nd trial:
Domain: pacificcape.com
Type: unauthorized
Detail: Incorrect TXT record
“YZ7OGAJKGDtU4e5MUYblLZaao4rbWhEJJRCWmb_11_w” (and 1 more) found at
_acme-challenge.pacificcape.com
Domain: www.pacificcape.com
Type: unauthorized
Detail: No TXT record found at _acme-challenge.www.pacificcape.com
My web server is (include version): Apache httpd 2.4.x
The operating system my web server runs on is (include version): Ubuntu 16.04
My hosting provider, if applicable, is: N/A
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
DESCRIPTION
I’m having trouble generating certificate (certonly --manual --preferred-challenges dns) on Mac OSX for a domain using the command described in the “ran command” section above.
I tried it twice, both failed. My TXT records after the 2nd trial have the exact content what I was asked to set up:
$ dig pacificcape.com txt
;; QUESTION SECTION:
;pacificcape.com. IN TXT
;; ANSWER SECTION:
pacificcape.com. 3600 IN TXT “_acme-challenge.www.pacificcape.com=DoDrapE7nyqVKhXaE5dPLCpo8lxMnYgb8H1Dt_AtfOw”
pacificcape.com. 3600 IN TXT “_acme-challenge.pacificcape.com=9pEHb8sAtUwX2mKWmIFSE-3qEJJM0yDRQKIf7Dx7d4A”
The strange thing is that the TXT records certbot found in the two trials are different, as if they were randomly generated (see the above “produced output” section).
Any hep/advice would be greatly appreciated.

