I ran this command: certbot certonly --webroot --webroot-path=/var/www/html/naijawiz.com -d naijawiz.com -d www.naijawiz.com
It produced this output:
Failed authorization procedure. naijawiz.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://naijawiz.com/.well-known/acme-challenge/KxPWitlh57ahLiYrihm7tNdaXUQiJTbncyGg4uvN6bw [161.22.44.119]: "<!doctype html><html class=\"no-js\" lang=\"en\" dir=\"ltr\"><head><meta charset=\"utf-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"I", www.naijawiz.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.naijawiz.com/.well-known/acme-challenge/j96FsvpbAOeeX2CkiBn-JWiQZNHk-59NU6J4OpGiI3o [161.22.44.119]: "<!doctype html><html class=\"no-js\" lang=\"en\" dir=\"ltr\"><head><meta charset=\"utf-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"I"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: naijawiz.com
Type: unauthorized
Detail: Invalid response from
http://naijawiz.com/.well-known/acme-challenge/KxPWitlh57ahLiYrihm7tNdaXUQiJTbncyGg4uvN6bw
[161.22.44.119]: "<!doctype html><html class=\"no-js\" lang=\"en\"
dir=\"ltr\"><head><meta charset=\"utf-8\"><meta
http-equiv=\"X-UA-Compatible\" content=\"I"
Domain: www.naijawiz.com
Type: unauthorized
Detail: Invalid response from
http://www.naijawiz.com/.well-known/acme-challenge/j96FsvpbAOeeX2CkiBn-JWiQZNHk-59NU6J4OpGiI3o
[161.22.44.119]: "<!doctype html><html class=\"no-js\" lang=\"en\"
dir=\"ltr\"><head><meta charset=\"utf-8\"><meta
http-equiv=\"X-UA-Compatible\" content=\"I"
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): Docker (Ubuntu 18.04 64Bits)
My hosting provider, if applicable, is: Bluehost
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
Seems your web server is not serving the challenge files that Let's Encrypt needs to validate that you control the domain.
The first thing that you should do is create a test file and check that you can get it with your browser.
mkdir -p /var/www/html/naijawiz.com/.well-known/acme-challenge/
echo "This is a test file" > /var/www/html/naijawiz.com/.well-known/acme-challenge/test-le
If you can see the text This is a test file then the web root you are using is the right one and your web server works fine. If you can't reach the files then you should review your web server conf.
Hello @sahsanu . Thanks a lot for your reply. I've done the test you indicated and actually I'm being redirected to my applications's 404 error page. Any further suggestions?