I’m set up on AWS with Ubuntu 16.04 and Nginx and was trying to get certs for HTTPS for my site following tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04#step-2-obtain-an-ssl-certificate
Ran
sudo certbot certonly --webroot --webroot-path=/var/www/html -d powertrader.com -d www.powertrader.com
and got:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for powertrader.com
http-01 challenge for www.powertrader.com
Using the webroot path /var/www/html for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.powertrader.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.powertrader.com/.well-known/acme-challenge/mngjpBDyH2l3KZi11R9__JwVcltkr4N-s6sYyyiRmSI: "
"
powertrader.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://powertrader.com/.well-known/acme-challenge/gJNIt8p8cHRb6V7FosSQQzdjs-JGrVOfu9m6_X6N_h4: "
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.powertrader.com
403 Forbidden
Type: unauthorized
Detail: Invalid response from
http://www.powertrader.com/.well-known/acme-challenge/mngjpBDyH2l3KZi11R9__JwVcltkr4N-s6sYyyiRmSI:
"Domain: powertrader.com
403 Forbidden
Type: unauthorized
Detail: Invalid response from
http://powertrader.com/.well-known/acme-challenge/gJNIt8p8cHRb6V7FosSQQzdjs-JGrVOfu9m6_X6N_h4:
"To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
I do have a basic authentication set up but the SSL cert still threw an error when I commented the authentication out in the conf.
I thought it might be a firewall issue from some research online so I continued to setup firewall access as tutorial suggests with ‘Nginx Full’ to no avail.
I’m new to all this so please bear with me.
Can anyone help please?