Hi, I’m having trouble with Certbot. I had a bit of trouble before, and I managed to fix it by looking at the virtual host files and editing. I want to run the command again to be able to redirect all requests as HTTPS. I didn’t do it at first because I wasn’t sure if it’d work, but now it does. Any idea what I’m doing wrong here? Thanks!
My domain is: loadscreen.net
I ran this command: sudo certbot --apache -d loadscreen.net -d www.loadscreen.net
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
You have an existing certificate that contains a portion of the domains you
requested (ref: /etc/letsencrypt/renewal/loadscreen.net.conf)
It contains these names: loadscreen.net
You requested these names for the new certificate: loadscreen.net,
www.loadscreen.net.
Do you want to expand and replace this existing certificate with the new
certificate?
(E)xpand/©ancel: E
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for loadscreen.net
http-01 challenge for www.loadscreen.net
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.loadscreen.net (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.loadscreen.net/.well-known/acme-challenge/dYv-Bgj-y5B-mg8-m9rXicysLE0O8uxSE2GvMtpLUqI: "\n<html lang=“en”>\n \n <meta charset=“utf-8”>\n <meta name=“viewport” content=“width=device-width, init”
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.loadscreen.net
Type: unauthorized
Detail: Invalid response from
http://www.loadscreen.net/.well-known/acme-challenge/dYv-Bgj-y5B-mg8-m9rXicysLE0O8uxSE2GvMtpLUqI:
"\n<html lang=“en”>\n \n <meta
charset=“utf-8”>\n <meta name=“viewport”
content=“width=device-width, init”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.
The operating system my web server runs on is (include version): Ubuntu 18.04
My hosting provider, if applicable, is: Digitalocean
I can login to a root shell on my machine (yes or no, or I don’t know): Yes:
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): certbot 0.28.0