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

All webmasters want to protect their websites as much as possible. For example, enabling SSL certificate would encrypt the website and make it a safer environment. Unfortunately, SSL certificates cost money. Therefore, many websites on the internet are not fully secured.

However, there is a project called Let’s Encrypt which provides authority SSL certificates free of charge. It is a great contribution to the safety of the internet.

Today, we will learn how to install Let’s Encrypt SSL on a VPS Running Webmin/Virtualmin.

What you’ll need

Before you begin this guide you’ll need the following:

  • A working VPS with Webmin/Virtualmin installed
  • Access to your Webmin/Virtualmin admin panel
  • A created Virtual Server (virtual host) of your website in Virtualmin

Step 1 — Enabling SSL for your website

  1. Login to your Webmin/Virtualmin admin panel. You can usually do this by typing https://your-vps-ip-adress:10000 (replace your-vps-ip-address with the dedicated IP address of your VPS) into your browser.
  2. Choose Virtualmin between two options at the top of the left sidebar.
    Virtualmin location
  3. Choose the desired Virtual Server (you must have it set up already) from the drop down box at the top of left sidebar.
  4. Find and click Edit Virtual Server.
    Edit Virtual Server location
  5. Click Enabled Features. Feature list will appear. Make sure that SSL Website Enabled? option is ticked.
    Enable SSL site feature
  6. Save changes
    Save changes

Step 2 — Installing Let’s Encrypt SSL on your virtual server

  1. Make sure you selected the desired virtual server from the drop down list in the left sidebar.
  2. Find Server Configuration tab and open it. You will see many options, we need to select Manage SSL Certificate.
    SSL certificates
  3. A page with your current SSL details will open. At the navigation bar find and open Let’s Encrypt.
    Let's Encrypt location
  4. In this step, you will need to check if default settings are correct and change them if they are not.
    • Under section Request certificate for, you have two options to choose: Domains associated with this server and Domain names listed here. If you choose the first option, SSL certificate will be installed on your virtual hosts default domain names. However, if you need to install SSL certificates on other domains/subdomains on the same virtual server, choose the 2nd option and fill in necessary domains manually.
    • Under section Months between automatic renewal you have option Only renew manually or a field to fill in the period of months when the SSL certificate should be renewed automatically. Feel free to choose whichever option suits you best.
      SSL options
  5. Once you have everything set up as you need to click Request Certificate.
    Install certificate
  6. If the certificate was installed successfully, you will get a success message!
    Success installing SSL

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 HTTPS version of your site, refer to how to force HTTPS tutorial.


You have learned how to install Let’s Encrypt SSL on VPS running Webmin/Virtualmin. Let’s Encrypt is a great choice to encrypt your website with an SSL certificate. It will become a much safer environment for your users.

About the author

Linas L.

Linas started as a customer success agent and is now a full-stack web 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.

Add Comment

Click here to post a comment

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

Get Exclusive Content

Join thousands of webmasters who get our free newsletter with tips on how to drive more traffic and revenue to their websites!

Please wait...

Thank you for sign up!

More in VPS
How to Secure CentOS 6 VPS With Fail2Ban