Question

How to reinstall SSL certificate

Posted May 8, 2021 172 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 example.com -d www.example.com

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

Regards,
Bobby

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/mydomain.sg.crt
SSLCertificateKeyFile /path/to/keys/mydomain.sg.key
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.

Regards,
Alex