Skip to main content
DigiCert, Sectigo and GeoTrust SSL certificates
+90 850 259 76 06 WhatsApp Support Become a Reseller
SSL Certificates
Brands
Code Signing LEI Code
Tools
Support Contact WhatsApp Cart
Language
Currency
Get an SSL Certificate
Guides

Virtualmin/Webmin SSL Certificate Installation and CSR Generation

SSL certificate installation, CSR creation and use of Let's Encrypt module on Virtualmin and Webmin. Detailed installation guide.

14 min read

Virtualmin is an open source hosting control panel based on Webmin and is widely used on Linux servers. It offers powerful tools for SSL certificate management. In this guide, we cover SSL installation, CSR creation and Let's Encrypt configuration on Virtualmin/Webmin step by step.

💡 Information: Virtualmin is used for web hosting management (virtual host), while Webmin is used for general server management (services, firewall, etc.). SSL management can be done from both.

1. SSL Setup from Virtualmin

Step 1: Creating CSR

  1. Login to Virtualmin panel (https://server-ip:10000)
  2. Select the relevant domain from the left menu
  3. "Server Configuration" → "SSL Certificate"
  4. Click on the "Create Signing Request" tab
  5. Fill in the information:
    • Organisation: Company name
    • Organization Unit: IT Department
    • City/State/Country: Location information
    • Email: Admin email
  6. Click the "Create Now" button
  7. The CSR text will appear on the screen — copy it

Step 2: Installing SSL Certificate

  1. "Install Certificate" tab on the "SSL Certificate" page
  2. Use one of the options:
    • "Paste text below" — Paste the certificate content
    • "Upload certificate file" — Upload the CRT file
  3. Add the CA Bundle file in the same way
  4. Click the "Install Now" button

2. Let's Encrypt Module

Virtualmin offers built-in Let's Encrypt support:

  1. Select Domain → "Server Configuration" → "SSL Certificate"
  2. Click the "Let's Encrypt" tab
  3. Click the "Request Certificate" button
  4. The certificate will be automatically installed and Apache/Nginx configured

Automatic Renewal

# Virtualmin's Let's Encrypt refresh cron job
# Automatically created under /etc/cron.d/

# Manual refresh
virtualmin generate-letsencrypt-cert --domain example.com --renew

# Renewal for all domains
virtualmin generate-letsencrypt-cert --all-domains --renew

3. Webmin Server SSL Configuration

To set up SSL on the Webmin panel itself:

  1. Webmin → "Webmin" menu → "Webmin Configuration"
  2. Click "SSL Encryption"
  3. Specify certificate files:
    • Private key file: /etc/webmin/miniserv.pem
    • Certificate file: Certificate file path
    • Additional certificate files: CA Bundle path
  4. Click the "Save" button
  5. Restart Webmin

4. HTTPS Redirect

  1. Virtualmin → Select Domain → "Server Configuration" → "Website Options"
  2. Set "Redirect all requests to SSL site?" to Yes
  3. Click the "Save" button

5. Common Errors and Solutions

ErrorSolution
Let's Encrypt rate limit exceededWait a week or use staging server: --staging
Apache SSL module is not activea2enmod ssl && systemctl restart apache2
Port 443 is used in another servicess -tlnp | check with grep 443
Certificate and key do not matchUse the key generated with the same CSR. Check: openssl x509 -noout -modulus -in cert.crt | md5sum

Frequently Asked Questions

Is SSL automatically installed on every domain in Virtualmin?

If you enable the "Request Let's Encrypt certificate at creation time" option in Virtualmin settings, SSL will be automatically received for each newly added domain.

How to install SSL on Webmin's own panel?

You can configure the panel HTTPS certificate from the Webmin Configuration → SSL Encryption section. You can also get an automatic certificate with Let's Encrypt.

📌 DataSSL: Need help choosing the appropriate SSL certificate for your Virtualmin server? Check out our products →
Share this post
Ali Yiğit
Yazar

Ali Yiğit

Recommended SSL Certificates

All Products
EV Certum

Certum Premium EV Multi-Domain SSL

Protect multiple domains at EV level with Certum Premium EV Multi-Domain SSL. Company name visible i

$419.00 /yr
Details
EV Certum

Certum Premium EV SSL

Get the most comprehensive identity validation with Certum Premium EV SSL. Extended validation, comp

$654.58 /yr
Details
OV Certum

Certum Trusted Multi-Domain SSL

Protect multiple domains at OV level with Certum Trusted Multi-Domain SSL. Company name visible, 4,

$50.00 /yr
Details