How to Install Let’s Encrypt SSL on VPS Running Webmin/Virtualmin
access_time
hourglass_empty
person_outline

How to Install Let’s Encrypt SSL on VPS Running Webmin/Virtualmin

Let’s Encrypt is the go-to choice for those who need free SSL certificates. And luckily for Webmin users, SSL certificates from Let’s Encrypt can be requested and installed directly from the web-based control panel.

In this tutorial, we will explain how to install Let’s Encrypt SSL on a VPS running Webmin.

Why Do You Need SSL Certificates From Let’s Encrypt?

There are many methods of protecting a website, and enabling an SSL certificate is one of them. SSL (Secure Sockets Layer) secures your connection by encrypting the data sent between the browser and the server.

Most popular web browsers like Chrome and Firefox alert the users when they’re on a non-secure website. As such, having an SSL certificate can help you gain visitors’ trust and improve the site’s credibility.

Unfortunately, due to its cost, many websites do not use SSL. To address this issue, the Internet Security Research Group (ISRG) set up a free certificate authority named Let’s Encrypt. It currently serves more than 150 million websites.

Installing Let’s Encrypt SSL on VPS by Using Webmin

Installing Let’s Encrypt SSL by using Webmin is pretty easy and quick. Follow the steps below to know how to do it.

Step 1: Enable SSL Settings

Before we proceed, make sure that you already set Webmin as your VPS operating system.

Log in to the Hostinger’s hPanel and head to the Servers tab. Then, find Other settings section and change the operating system to Ubuntu 18.04 64bit with Webmin/Virtualmin/LAMP. Press Save changes.This picture shows how to change the VPS operating system on your hPanel

After that’s done, we need to log in to your Webmin and enable the SSL option for your website:

  1. Login to your Webmin/Virtualmin by typing https://your.vps.ip.address:10000. The IP address along with your login credentials can be found in the hPanel’s Servers tab.
  2. You’ll be prompted with a warning from the browser. For Chrome users, click Advanced and select Proceed to [your IP address].
  3. Enter your login credentials. If you forgot your password, find the Root password option in the hPanel’s Servers tab and reset your password from there.
    This image shows you the webmin/virtualmin login homepage
  4. Once logged in, select the Webmin tab from the sidebar menu, and click Edit Virtual Server. If you haven’t set up a Virtual Server, follow this tutorial for guidance.
  5. Head over to the Enabled Features section and tick the Apache SSL website enabled? option. Hit Save Virtual Server.How to enable SSL on VPS Webmin

Step 2: Install Let’s Encrypt SSL on Your VPS

Once SSL is enabled, now we can install Let’s Encrypt certificate from your Webmin:

  1. From the Webmin panel, head over to Server Configuration -> SSL Certificate. Then, select the Let’s Encrypt tab.
  2. Adjust the following settings according to your needs:
    • Request certificate for — two options are available: Domains associated with this server and Domains listed here. Choose the former to install the certificate on your virtual hosts’ default domain names. However, if you need to install the certificate on other domains and subdomains within the same server, choose the latter and enter the domain names.
    • Months between automatic renewal  — Let’s Encrypt certificates are valid for 90 days. Hence, the value of this option should not be more than three.
  3. Once you’re done making changes, click Request Certificate.Let's Encrypt settings in Webmin

That’s it! You should now be able to access your website using the HTTPS protocol.

If you want to automatically redirect all of your website traffic to the HTTPS version of your site, refer to this tutorial.

Conclusion

There you have it! In this tutorial, you have learned how to install Let’s Encrypt SSL certificate on a VPS running Webmin. Simply enable the SSL option from your Webmin, and then request the certificate. Pretty easy, isn’t it?

So what are you waiting for? Go ahead and secure your website!

The Author

Author

Linas L. / @linas

Linas started as a customer success agent and is now a full-stack PHP developer at Hostinger. He is passionate about making a positive impact on people by utilizing user-driven development techniques. As much as he enjoys coding and changing the world, he secretly dreams of becoming a rock star.

Related tutorials

Leave a reply

Comment*

Name*

Email*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Become a part of Hostinger now!

More in VPS
How to Protect CentOS 7 VPS: Installing Fail2Ban
Close