Get errors with certbot Nginx

Hi everyone have seen some similar questions but have tried what in tohers have read and still doesn’t work.

That’s what I write and what I get back:

`pipo@pipo-X542UV:~$ sudo certbot --nginx -d teeth.com -d www.teeth.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for teeth.com
http-01 challenge for www.teeth.com
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.teeth.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.teeth.com/.well-known/acme-challenge/C30yEZ1rNLGiRwj2iBmYjJ6wfsEsPlyogQbJy22Bi2c: "

404 Not Found

404 Not Found


", teeth.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://teeth.com/.well-known/acme-challenge/1qtSGQdUt-FPUodKRxSyRwH-rdySL0LmyRnnramnGM8: " 404 Not Found

404 Not Found


"

IMPORTANT NOTES:

I’ve created a folder in var/www/teeth/ and tried to create the folders .well-known and inside acme-challenge but I get a notice that they are all ready created even if it looks empty.

Any suggestions of what I should do?

Hi @zaesar,

Your domain teeth.com is being redirected to redwoodcitydentistry.com, Let's Encrypt will follow this redirection but seems your domains are on different servers so Let's Encrypt can't find the challenge.

What is the nginx conf for your domain teeth.com ?.

Cheers,
sahsanu

By the way, if you're using --nginx with a current version of Certbot, you don't have to do these steps yourself (and they won't really help to resolve the problem). These steps are more related to --manual or for debugging various problems with the --webroot method.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.