net::ERR_CERT_COMMON_NAME_INVALID

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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: clover.lebonelitho.co.za

I ran this command: sudo certbot --expand -d clover.lebonelitho.co.za

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 clover.lebonelitho.co.za. Set the server_name directive to use the Nginx installer.

IMPORTANT NOTES:

  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/clover.lebonelitho.co.za/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/clover.lebonelitho.co.za/privkey.pem
    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 - https://check-your-website.server-daten.de/?q=clover.lebonelitho.co.za

CN=clover.lebonelitho.co.za
	10.10.2019
	08.01.2020
expires in 90 days	clover.lebonelitho.co.za - 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 clover.lebonelitho.co.za - 1 entries duplicate nr. 2
Let’s Encrypt Authority X3 2019-10-10 2020-01-08 clover.lebonelitho.co.za - 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.

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

ERR_TOO_MANY_REDIRECTS

Could you please guide