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 --expand -d

It produced this output:Saving debug log to /var/log/letsencrypt/letsencrypt.log

How would you like to authenticate and install certificates?

1: Apache Web Server plugin (apache)
2: Nginx Web Server plugin (nginx)

Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Could not automatically find a matching server block for Set the server_name directive to use the Nginx installer.


  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at:
    Your key file has been saved at:
    Your cert will expire on 2020-01-08. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot again
    with the “certonly” option. To non-interactively renew all of
    your certificates, run “certbot renew”

My web server is (include version):nginx nginx/1.14.0 (Ubuntu)

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

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

Hi @arnab.sharma

checking your domain there is already a certificate -
expires in 90 days - 1 entry

Your non-www version is secure, your www version not. But that's expected, if you use only one domain name.

And you have created two certificates:

Issuer not before not after Domain names LE-Duplicate next LE
Let's Encrypt Authority X3 2019-10-10 2020-01-08 - 1 entries duplicate nr. 2
Let's Encrypt Authority X3 2019-10-10 2020-01-08 - 1 entries duplicate nr. 1

Do you want to secure your www version? If yes, first check your vHost configuration:

nginx -T

and add your www as server_name.

Then use both domain names with the -d option.

I tried the above steps and now i am getting the error:


Could you please guide

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