Prerequisites
Before you begin, ensure you have:
- Root access to your server
- Webmin (and optionally Virtualmin) installed
- Your SSL certificate files (CRT, Key, and CA Bundle)
Step 1 — Secure the Webmin Interface (Port 10000)
To secure the control panel interface itself:
- Log in to Webmin.
- Go to Webmin -> Webmin Configuration.
- Click on SSL Encryption.
- In the SSL Settings tab, set Enable SSL? to Yes.
- Under Private key file, enter the path to your
.keyfile. - Under Certificate file, enter the path to your
.crtfile. - Click Save. Webmin will restart and you will need to access it via
https://yourdomain:10000.
Step 2 — Secure a Website (Virtualmin)
If you use Virtualmin to manage websites:
- Select the virtual server you want to secure from the dropdown list.
- Go to Server Configuration -> SSL Certificate.
- Click on the Update Certificate and Key tab.
- Paste the contents of your Certificate and Private Key.
- Click Save Certificate.
- Go to the CA Certificate tab and paste your CA Bundle.
- Click Save CA Certificate.
Apache/Nginx: Virtualmin will automatically update the underlying web server (Apache or Nginx) configuration for you.
Step 3 — Verify Installation
Test your website or Webmin port with https://. Ensure the certificate details are correct. You can use our SSL Checker to verify the full trust chain.