How to reinstall SSL certificate

How to reinstall SSL certificate

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

Regards, Alex

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.

Regards, Bobby