Get http 500 when trying to create new 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: sudo certbot certonly -a webroot --webroot-path=/var/www/ -d

It produced this output: Unable to clean up challenge directory /var/www/
Failed authorization procedure. (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from "

500 Internal Server Error


***But I was able to access a file through the browser at

My web server is (include version):ngnix

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

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):

What does the nginx log say about the request which gave you the 500 error?

Found the problem, needed to chmod 755 the /var/www/ dir.
Thanks for the reply anyway!

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