Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: www.titivillus.ca and titivillus.ca
I ran this command: sudo certbot --apache -d www.titivillus.ca -d titivillus.ca -v
It produced this output:
Challenge failed for domain www.titivillus.ca
http-01 challenge for Identifier(typ=IdentifierType(dns), value='titivillus.ca')
http-01 challenge for Identifier(typ=IdentifierType(dns), value='www.titivillus.ca')
Some more information. I have been using CertBot happily on several other sites with no problem. So I cannot understand why it is not working on this site. Looking at the logs I see this line in the output for the sites I have got certificates for:
"validationRecord": [
{
"url": "http://textualcommunities.com/.well-known/acme-challenge/BJZXAZYLY86_-1OkyrIXu-DFFh1qZpGJPICLp3asTEc",
"hostname": "textualcommunities.com",
"port": "80",
"addressesResolved": [
"80.79.4.52"
],
"addressUsed": "80.79.4.52"
But when I try to generate the certificate for titivillus.ca I see this:
"validationRecord": [
{
"url": "http://www.titivillus.ca/.well-known/acme-challenge/V_bdWi2gJOkKJkSeXlIqBHCgO6G9ym_UPqSXBKqJ-ks",
"hostname": "www.titivillus.ca",
"port": "80",
"addressesResolved": [
"3.33.130.190",
"15.197.148.33",
"80.79.4.52"
],
"addressUsed": "3.33.130.190"
Where did these additional addressesResolved come from? and why is addressUsed set to some completely random server which I have nothing to do with?
Thank you! That is just weird. I did NOT set up those first two records. That address is with goDaddy. I'll check that and remove these unwatned A Dns records and report.
That looks like leftovers from setting up GoDaddy Domain Forwarding or the original parking page. Google uses AWS services for that and two of those IP are for AWS.
Good news (mostly). I went to GoDaddy configuration. There was another active A record there: which curiously had a blank where the IP address should go. There were NO A records linking to the dubious 3.33.130.190 and 15.197.148.33 sites. Anyway: I eliminated the dubious empty A link. I checked with dig www.titivillus.ca and now I could only see my server IP. And lo! certbot worked and now I have a fully functioning https site.
I am still puzzled by what is going on inside GoDaddy. But hey. All good.