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:

  1. Log in to Webmin.
  2. Go to Webmin -> Webmin Configuration.
  3. Click on SSL Encryption.
  4. In the SSL Settings tab, set Enable SSL? to Yes.
  5. Under Private key file, enter the path to your .key file.
  6. Under Certificate file, enter the path to your .crt file.
  7. 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:

  1. Select the virtual server you want to secure from the dropdown list.
  2. Go to Server Configuration -> SSL Certificate.
  3. Click on the Update Certificate and Key tab.
  4. Paste the contents of your Certificate and Private Key.
  5. Click Save Certificate.
  6. Go to the CA Certificate tab and paste your CA Bundle.
  7. 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.