Hello,
I successfuly installed certificates on one of my web servers, for 2 subdomains.
I'm now trying to install another certificate for my production server with the domain "offshadow.com".
Both servers are managed by OVH. But for the production one, the domain "offshadow.com" is managed by Google Domain (the other domains are managed by OVH directly).
I set "A" DNS entries on google domain to point my OVH IP address.
Important note : I use a Docker architecture with a "certbot" container.
My problem : certificate is generated successfuly when I set the --staging
option. But when I remove it, I got a 404 error on my webserver. DNS-01, HTTP-01 and TLS-ALPN-01 challenged return as "invalid".
I getting crazy because I cannot figure out why everything works fine on staging env and not on production. I checked privileges on my www/
dir and it seems to be OK.
Is there any difference between staging and production challenges ? Do I have to add some entries on my google domain configuration ?
My domain is:
offshadow.com
I ran this command:
certbot certonly --verbose --webroot -w /var/www/certbot -d offshadow.com
It produced this output:
{
"identifier": {
"type": "dns",
"value": "offshadow.com"
},
"status": "invalid",
"expires": "2018-11-30T09:53:11Z",
"challenges": [
{
"type": "dns-01",
"status": "invalid",
"url": "https://acme-v02.api.letsencrypt.org/acme/challenge/oJ3qQ1hYk0ElgI4DBo4U4OFu6BOYoOPzJ3HEb1YgROA/9567469168",
"token": "d--3sY6l-Jxq0w04iZlQRWdzCazRA5O2u6nwePGKV6U"
},
{
"type": "tls-alpn-01",
"status": "invalid",
"url": "https://acme-v02.api.letsencrypt.org/acme/challenge/oJ3qQ1hYk0ElgI4DBo4U4OFu6BOYoOPzJ3HEb1YgROA/9567469171",
"token": "fw_2nPCae_RWY7HqIVuB-SiBFFSo1FZCLXfgF3oj1pY"
},
{
"type": "http-01",
"status": "invalid",
"error": {
"type": "urn:ietf:params:acme:error:unauthorized",
"detail": "Invalid response from http://offshadow.com/.well-known/acme-challenge/2OhKY8ljXxGxT5-2m5wKPQJUhI9UwtxMgQT9_EC6XdI: "\u003chtml\u003e\r\n\u003chead\u003e\u003ctitle\u003e404 Not Found\u003c/title\u003e\u003c/head\u003e\r\n\u003cbody bgcolor=\"white\"\u003e\r\n\u003ccenter\u003e\u003ch1\u003e404 Not Found\u003c/h1\u003e\u003c/center\u003e\r\n\u003chr\u003e\u003ccenter\u003e"",
"status": 403
},
"url": "https://acme-v02.api.letsencrypt.org/acme/challenge/oJ3qQ1hYk0ElgI4DBo4U4OFu6BOYoOPzJ3HEb1YgROA/9567469172",
"token": "2OhKY8ljXxGxT5-2m5wKPQJUhI9UwtxMgQT9_EC6XdI",
"validationRecord": [
{
"url": "http://offshadow.com/.well-known/acme-challenge/2OhKY8ljXxGxT5-2m5wKPQJUhI9UwtxMgQT9_EC6XdI",
"hostname": "offshadow.com",
"port": "80",
"addressesResolved": [
"51.68.83.89"
],
"addressUsed": "51.68.83.89"
}
]
}
]
}
My web server is (include version): OVH Public Cloud
The operating system my web server runs on is (include version): Debian 8
My hosting provider, if applicable, is: OVH and domain manged by google domain
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
Thanks a lot !