Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AbdallahSabri's avatar

How can I update lets-encrypt certificate

I setup a LEMP stack on ubuntu server like this tutorials https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/

Now the certificate is expired, when I tried to update the certificate using this command certbot renew I get this error

Saving debug log to /var/log/letsencrypt/letsencrypt.log

-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/portal.mot.gov.ps.conf
-------------------------------------------------------------------------------
Cert not yet due for renewal

-------------------------------------------------------------------------------

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/portal.mot.gov.ps/fullchain.pem (skipped)
No renewals were attempted.
-------------------------------------------------------------------------------

This is the first time I update the certificate

What should I do?

0 likes
1 reply
lostdreamer_nl's avatar

Are you sure you didn't setup a cron back then for the auto renewal?

Run:

openssl x509 -in  /etc/letsencrypt/live/portal.mot.gov.ps/fullchain.pem -text -noout

And check for the "Not After" to see if the certificate is actually expired.

If not, try restarting / reloading your webserver (it might still use the old one even though certbot has already auto-updated it)

Please or to participate in this conversation.