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

oscar_g__'s avatar

Is it safe to remove a Let's Encrypt certificate and add a new one?

I recently started getting weird behavior on certain browsers and devices where they're saying they can't establish a secure connection to my website. This only started recently. Coincidentally, my Let's Encrypt certificate recently refreshed. I haven't touched it for 2 years.

Should I delete the existing certificate and install a fresh one? Anything I should keep in mind?

1 like
3 replies
LaryAI's avatar
Level 58

Yes, it is generally safe to remove a Let's Encrypt certificate and issue a new one. Here are the steps and considerations to keep in mind:

  1. Backup Current Certificate: Before making any changes, it's a good idea to back up your current certificate and any related configuration files. This way, you can restore them if needed.

  2. Check Configuration: Ensure that your web server (e.g., Apache, Nginx) is correctly configured to use the new certificate once it's issued. This includes updating any paths to the certificate files in your server configuration.

  3. Revoke the Old Certificate: While not strictly necessary, you can revoke the old certificate if you believe it might be compromised. This can be done using the Let's Encrypt client you used to issue it.

  4. Issue a New Certificate: Use a Let's Encrypt client like Certbot to issue a new certificate. The process typically involves running a command like:

    sudo certbot --apache
    

    or for Nginx:

    sudo certbot --nginx
    

    This will automatically configure your server to use the new certificate.

  5. Test the New Certificate: After issuing the new certificate, test your website in different browsers and devices to ensure the secure connection is established correctly.

  6. Automate Renewal: Ensure that your Let's Encrypt client is set up to automatically renew the certificate. Certbot, for example, can be set up with a cron job or systemd timer to handle this.

  7. Check for Mixed Content: If you're still experiencing issues, check for mixed content (HTTP resources on an HTTPS page) as this can cause browsers to block the connection.

By following these steps, you should be able to safely replace your Let's Encrypt certificate and resolve any issues with secure connections.

1 like
vincent15000's avatar

Let's encrypt certificates have to be refreshed regularly.

For me they had one year lifetime.

Snapey's avatar

lets encrypt certificates have to be renewed every three months, so I doubt renewing (again) will make any difference.

Is the problem limited to certain devices? Are these old devices?

1 like

Please or to participate in this conversation.