How to reinstall SSL certificate

Posted May 8, 2021 385 views

How to reinstall SSL certificate

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi there,

In case that you are using Let’s Encrypt with Certbot you could renew your certificate with the following command:

sudo certbot renew --dry-run

Alternatively if you need to issue a new certificate, you could run the following:

sudo certbot --nginx -d -d

If you are not using Nginx change the --nginx part with --apache.


Hello, @cryptomastery3

If you’re not using Let’s Encrypt but another third-party SSL Certificate you can replace the content of the files of the current SSL Certificate which are defined in the domain name’s virtual host:

SSLCertificateFile /path/to/
SSLCertificateKeyFile /path/to/keys/
SSLCertificateChainFile /path/to/keys/intermediate.crt

If you can share more information about the server, e.g if it’s running LAMP or LEMP stack and SSL type, we can give you more detailed instructions.