DEV Community

Cover image for Renew LetsEncrypt SSL Certificate in WordPress by Bitnami
Sanchit Bajaj
Sanchit Bajaj

Posted on

1 1 1 1 1

Renew LetsEncrypt SSL Certificate in WordPress by Bitnami

Welcome Developers! If you're a WordPress website owner concerned about the security of your site, you're in the right place. In this article, we'll discuss the hassle of SSL certificate renewals and how Bitnami's free SSL certificate renewal service for WordPress can simplify and streamline this essential process.

What is an SSL certificate?

SSL stands for Secure Sockets Layer. It is a protocol that encrypts and authenticates data transmitted between a browser and a web server, therefore making your information secure while surfing the Internet.

How to renew your SSL certificate

To renew the SSL certificate, make sure you have admin/root access to the server where you deployed your WordPress machine. If you have then do the SSH login using the username and password:

ssh username@<ip address>
Enter fullscreen mode Exit fullscreen mode

If you have .pem instead, do the following:

ssh -i "file.pem" bitnami@<ip address>
Enter fullscreen mode Exit fullscreen mode

After that, access the admin access of the server by typing the following commands:

sudo su
Enter fullscreen mode Exit fullscreen mode

Now run the command below to obtain an SSL/TLS certificate for the domain on which your WordPress is hosted using the Certbot tool:

sudo certbot certonly --webroot -w /opt/bitnami/apps/letsencrypt/conf -d <domain name>
Enter fullscreen mode Exit fullscreen mode

After running the above command, a new certificate is obtained. Now to renew the SSL certificate paste the following commands into the terminal:

sudo /opt/bitnami/letsencrypt/lego --tls --email="<email address>" --domain="<domain name>" --path="/opt/bitnami/letsencrypt" renew --days 90
Enter fullscreen mode Exit fullscreen mode

This command is using the Lego client to renew the SSL/TLS certificate for the domain name associated with the provided email address. The renewal is initiated if the certificate has less than 90 days left until expiration. The renewed certificate will be stored in the specified directory.

After running all the commands, restart your server. To restart your server, type the following commands:

  • Nginx

    sudo systemctl restart nginx
    
  • Apache

    sudo systemctl restart apache2
    

Conclusion

Congratulations🎉on renewing the SSL certificate of your WordPress website provided by Bitnami. If this method of renewing the SSL certificate won't work, let me know in the comments.

Thank you! for reading, please leave your comments if any ✌️

Don't forget to bookmark this blog for the future đź“Ś

Connect with the author:

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

đź‘‹ Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay