What do you have for you site directory? If it is default, then that is your problem. That entire process is finicky. I use it on 7 servers. The issue is usually something you did or didn't do.
Oct 26, 2016
8
Level 11
LetsEncrypt 'ERROR: Challenge is invalid!' on Forge
Hi guys I am just about to deploy my first web-app! I have configured the A and CNAME records on GoDaddy to point to www. and mydomain.com which work as expected
I am following the Forge series. When I go to create a SSL cert, I get Error We were unable to obtain a LetsEncrypt SSL certificate on your server (forge-server).
Creating well known challenge directory...
Installing LetsEncrypt client...
Cloning into 'letsencrypt111111'...
Configuring client...
Restarting Nginx...
Generating Certificate...
# INFO: Using main config file /root/letsencrypt1111111/config
+ Generating account key...
+ Registering account key with ACME server...
Processing mydomain.com with alternative names: www.mydomain.com
+ Signing domains...
+ Creating new directory /root/letsencrypt11111111/certs/mydomain.com ...
+ Generating private key...
+ Generating signing request...
+ Requesting challenge for mydomain.com...
+ Requesting challenge for mydomain.com...
+ Responding to challenge for mydomain.com...
ERROR: Challenge is invalid! (returned: invalid) (result: {
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:acme:error:unauthorized",
"detail": "Invalid response from http://mydomain.com/.well-known/acme-challenge/g111111111111111111111: \"\u003c!DOCTYPE html\u003e\u003cbody style=\"padding:0; margin:0;\"\u003e\u003chtml\u003e\u003cbody\u003e\u003ciframe src=\"http://mcc.godaddy.com/park/pJIbqUy2M2qlMF52LKAv\" sty\"",
"status": 403
},
"uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/k22222222222222222222222/315265030",
"token": "33333333333333333333333",
"keyAuthorization": "44444444444444444444444444",
"validationRecord": [
{
"url": "http://mydomain.com/.well-known/acme-challenge/55555555555555555555",
"hostname": "mydomain.com",
"port": "80",
"addressesResolved": [
"godaddy IP",
"forge IP"
],
"addressUsed": "godaddy IP"
}
]
})
Cant find a solution online, can anyone help me out please? Can't wait to get my first site online! Cheers
Level 11
I had an extra A file in my domain, once I removed that the SSL cert validated, very very cool !!!
Please or to participate in this conversation.