Im trying to install a certificate on a subdomain but keeps getting “Failed authorization procedure.”
My domain is:
en.furusjoenrundt.no
I ran this command:
sudo certbot --apache -d en.furusjoenrundt.no
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for en.furusjoenrundt.no
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. en.furusjoenrundt.no (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://www.furusjoenrundt.no/404.shtml [35.176.138.189]: “\n<html lang=“nb-NO” >\n\n<meta charset=“UTF-8”>\n<meta name=“viewport” content=“width=device-width”>\n<!-- WP_H”
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: en.furusjoenrundt.no
Type: unauthorized
Detail: Invalid response from
https://www.furusjoenrundt.no/404.shtml [35.176.138.189]:
“\n<html lang=“nb-NO” >\n\n<meta
charset=“UTF-8”>\n<meta name=“viewport”
content=“width=device-width”>\n<!-- WP_H”To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
Apache/2.4.29
The operating system my web server runs on is (include version):
Ubuntu 18.04
My hosting provider, if applicable, is:
Amazon AWS
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
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): certbot 0.31.0