Getting 404 errors when trying to renew/install certificate


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., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
I ran this command:
certbot-auto certonly --nginx -w /var/www -d -d

It produced this output:
“\r\n404 Not Found\r\n<body

404 Not


My web server is (include version):
nginx 1.10.3
The operating system my web server runs on is (include version):
Ubuntu 16.04.3 LTS
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):

Additional info:

I can access files in the .well-known/acme-challenge directory:

I have no IPV6 dns address:
curl -ikL6
curl: (6) Could not resolve host:

The site is hosting a wordpress install. The relevant nginx config :

location ^~/.well-known {
try_files $uri =404;

What else can i check to find the problem?


It worked without problems using getSSL… I changed nothing but the getSSL config


Hi @dashiad

-w alone doesn’t work, the --webroot parameter is missing. Use something like

certbot-auto certonly -a webroot -w /var/www -d -d

If you use certonly and webroot, you don’t need the --nginx - parameter.

closed #4

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