Renewed certificate, still getting Cert Date 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: portal.v2.imagemurbana.pt

I ran this command: sudo certbot certonly --manual --preferred-challenges=dns -d portal.v2

It produced this output:

  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/portal.v2.imagemurbana.pt/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/portal.v2.imagemurbana.pt/privkey.pem
    Your cert will expire on 2020-11-17. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot
    again. To non-interactively renew all of your certificates, run
    “certbot renew”

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

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

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

1 Like

You should throw this onto the end of your command:

--deploy-hook "service nginx reload"

Just renewing the certificate is not sufficient - nginx has to be told to reload the certificate from the filesystem as well.

2 Likes

Hi @adbarbosa

doesn't install the certificate.

Did you restart your server?

2 Likes

Thanks for the answer.
Solved the problem

1 Like

Thanks for the answer.
Solved the problem.

2 Likes

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