Renew nginx webroot ubuntu 18.04

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 --nginx certonly -n -d

It produced this output:
Processing /etc/letsencrypt/renewal/

Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer None
Attempting to renew cert ( from /etc/letsencrypt/renewal/ produced an unexpected error: Deserialization error: Expecting value: line 1 column 1 (char 0). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/ (failure)

My web server is (include version): ubuntu 18.04

The operating system my web server runs on is (include version):iredmail latest

My hosting provider, if applicable, is:

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.28.0

Hi @Yourdigitalheart

this is a config file. What's the content of this file?

Copy the file to another place, then delete it. Your command is comlete, so certbot should create a new file.

PS: Remove the -n flag if you start the command manual.

version = 0.28.0
archive_dir = /etc/letsencrypt/archive/
cert = /etc/letsencrypt/live/
privkey = /etc/letsencrypt/live/
chain = /etc/letsencrypt/live/
fullchain = /etc/letsencrypt/live/

Options used in the renewal process

account = 8fb63e5d54d9361e158d21793a5650ff
authenticator = webroot
webroot_path = /var/www/html,
server =
[[webroot_map]] = /var/www/html

thanks works as well

1 Like

but don’t renew the date of certificate

If you use certonly, you have to install the certificate manual. Or (minimal) reload your webserver.

yes sorry my mistake need sudo service nginx reload … stupid or too late Thanks for your reactivity.
best regards


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