How to Install an SSL Certificate on Virtualmin Server


Getting an SSL certificate up and running on your Virtualmin server may seem complicated at first, but it's pretty straightforward once you understand it. This guide walks you through the straightforward steps of installing an SSL certificate on your Virtualmin server.
What You'll Need Before Starting
Access to your Virtualmin dashboard
Your SSL certificate files (typically including a certificate file, private key, and possibly intermediate certificates)
SSH access to your server (optional, but helpful for troubleshooting)
Step-by-Step Guide to install SSL certificate on virtualmin server
1. Access Your Virtualmin Dashboard
Start by accessing your Virtualmin control panel through your web browser. Enter your admin credentials to log in.
2. Select Your Target Domain
Once logged in, find and click on the domain where you want to install the SSL certificate in the left sidebar. Make sure you select the correct domain - I've made this mistake before and ended up confused why my certificate wasn't working.
3. Find the SSL Certificate Section
After selecting your domain, look under "Server Configuration" in the menu. You'll find an option labeled "Manage SSL Certificate" - click on this to proceed.
4. Upload Your Certificate Files
You'll now see a page with several tabs. Click on "Upload Certificate" if you're installing a certificate you purchased from a third-party provider.
You'll need to fill in these fields:
Certificate file: Copy-paste the content of your main certificate file
Private key: Copy-paste your private key (keep this secure!)
Intermediate certificates: Copy-paste the intermediate certificate chain your provider gave you
A quick tip from my experience: Make absolutely certain you're copying the entire content of each file, including the beginning and ending tags like -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----
5. Save Your Configuration
After pasting all the required information, scroll down and click "Save" or "Install" to apply your changes.
6. Enable SSL for Your Website
Sometimes you need to explicitly enable SSL for your domain after installing the certificate:
Go back to your domain's main page
Navigate to "Server Configuration" again
Click "Website Options"
Look for SSL settings and make sure "Enable SSL website" is checked
Save your changes
7. Verify Your Installation
Now for the moment of truth - checking if everything worked:
Open a new browser tab and visit your site using https://
Check for the padlock icon in your browser's address bar
If you want to be thorough, use a tool like SSL Labs to check your configuration
Read Also: How to Install SSL Certificate on Cerberus FTP Server?
Common Problems and Solutions
Certificate Not Working
If your newly installed certificate isn't working:
Check for copying errors in your certificate files
Make sure the domain name on the certificate exactly matches your website
Try restarting Apache or Nginx (you can do this from Virtualmin under System > Service Configuration)
I once spent hours debugging a certificate issue only to discover the certificate was issued for www.domain.com while I was testing domain.com. Don't overlook the obvious!
Security Warnings
If visitors get browser warnings:
You probably missed including the intermediate certificates
Your certificate might have expired
Your website might be loading some resources over HTTP instead of HTTPS
Permission Issues
Sometimes permission problems can cause headaches:
Certificate files need to be readable by the web server
Private keys need tight permissions to stay secure
Automatic Certificate Renewal
Consider setting up automatic certificate renewal if you're using Let's Encrypt or another provider that offers this feature. Virtualmin has built-in support for Let's Encrypt certificates, which can be configured to renew automatically.
By following these steps, you should have successfully installed an SSL certificate on your Virtualmin server, securing your website with HTTPS encryption. This not only protects your users but also builds trust and improves your site's visibility in search results.
Subscribe to my newsletter
Read articles from Judy page directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Judy page
Judy page
Experienced Computer Specialist with a demonstrated history of working in the information technology and services industry.