Failed authorization procedure

Failed authorization procedure. afrotechtrends.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://afrotechtrends.com/.well-known/acme-challenge/_tNgClX9MEptwIZgeV8gGddwyS9XpS8lLZxbNAhKFV8: "\n<html lang=“en”>\n\n <meta http-equiv=“content-type” content=“text/html; charset=utf-8”>\n Page not "

IMPORTANT NOTES:

I got this error when trying to secure my domain www.afrotechtrends.com.
I recently changed the domains IP address to a new one and when I’m trying to secure the domain with the new IP address, I’m getting that error. Is there anyone who knows how I can fix that.?

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

1 Like

I ran this command: sudo certbot --nginx -d afrotechtrends.com -d www.afrotechtrends.com

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.afrotechtrends.com
http-01 challenge for afrotechtrends.com
nginx: [warn] conflicting server name “afrotechtrends.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.afrotechtrends.com” on 0.0.0.0:80, ignored
Waiting for verification…
Cleaning up challenges
nginx: [warn] conflicting server name “afrotechtrends.com” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “www.afrotechtrends.com” on 0.0.0.0:80, ignored
Failed authorization procedure. afrotechtrends.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://afrotechtrends.com/.well-known/acme-challenge/_tNgClX9MEptwIZgeV8gGddwyS9XpS8lLZxbNAhKFV8: "\n<html lang=“en”>\n\n <meta http-equiv=“content-type” content=“text/html; charset=utf-8”>\n Page not "

IMPORTANT NOTES:

My web server is (include version): Digitalocean

The operating system my web server runs on is (include version): Ubuntu 16.04

My hosting provider, if applicable, is: Digital Ocean

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

Do you have two server blocks for the same domain name on port 80? Maybe certbot is picking the wrong one to use for answering the validation challenge. You should probably only have one anyway...

edit: oops, I see you posted another topic about this and someone already answered you there. I'll close this to keep all the discussion in one place.

1 Like