I'm trying to set up letsencrypt but cannot get the dehydrate script to complete successfully. I think I know why - it cannot connect to one of the subdomains but I cannot understand how to fix it.
I run the server for a UK charity called The Silvers' Workshop. We have 4 domain names:
thesilversworkshop.org.uk
thesilversworkshop.co.uk
silversworkshop.org.uk
silversworkshop.co.uk
all hosted on the same server - the-shed.
The dehyrate script 'finds' most of the sites:
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting challenge for thesilversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for silversworkshop.co.uk...
+ Already validated!
+ Requesting challenge for mail.silversworkshop.co.uk...
+ Already validated!
+ Requesting challenge for the-shed.silversworkshop.co.uk...
+ Already validated!
+ Requesting challenge for
www.silversworkshop.co.uk...
+ Already validated!
+ Requesting challenge for silversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for mail.silversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for the-shed.silversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for
www.silversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for thesilversworkshop.co.uk...
+ Already validated!
+ Requesting challenge for mail.thesilversworkshop.co.uk...
+ Already validated!
+ Requesting challenge for the-shed.thesilversworkshop.co.uk...
+ Requesting challenge for thesilversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for mail.thesilversworkshop.org.uk...
+ Already validated!
+ Requesting challenge for the-shed.thesilversworkshop.org.uk...
+ Responding to challenge for the-shed.thesilversworkshop.co.uk...
+ Responding to challenge for the-shed.thesilversworkshop.org.uk...
ERROR: Challenge is invalid! (returned: invalid) (result: {
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:acme:error:connection",
"detail": "DNS problem: NXDOMAIN looking up A for the-shed.thesilversworkshop.org.uk",
"status": 400
},
"uri": "
https://acme-staging.api.letsencrypt.org/acme/challenge/kdga93z1nEFLE-XKHoavBhbWSWZEEIRTZEQIW7S-LhE/99886702",
"token": "ukgvJPYikl-PTA-2AsAQaJcZ4giN22bR3fkd53KKeZ8",
"keyAuthorization": "ukgvJPYikl-PTA-2AsAQaJcZ4giN22bR3fkd53KKeZ8.OK_3YRWBiaDphNzDFUNj-ax6XMZGg7F6J_bOLHYrej0",
"validationRecord": [
{
"url": "
http://the-shed.thesilversworkshop.org.uk/.well-known/acme-challenge/ukgvJPYikl-PTA-2AsAQaJcZ4giN22bR3fkd53KKeZ8",
"hostname": "the-shed.thesilversworkshop.org.uk",
"port": "80"
}
]
})
As you can see, it works on the-shed.silversworkshop.org.uk but fails on the-shed.thesilversworkshop.org.uk. As far as I can see the DNS records are the same for both domains with A records for www, the-shed and mail.
I suspect something obvious but I'm going round in circles trying to fix it so any help most welcome.
Tony