In this tutorial, we will show you how to install an SSL certificate on Webmin. If you’ve already generated a CSR code for your certificate, skip the first section and continue with the SSL installation steps. The last part includes useful tips on where to buy the best SSL Certificate for Webmin.

Generate a CSR code on Webmin
Install an SSL Certificate on Webmin
Test your SSL installation
Where to buy the best SSL Certificate for Webmin?

Generate a CSR code on Webmin

When applying for an SSL Certificate, one of your first steps is to generate a Certificate Signing Request (CSR) and send it to the Certificate Authority. The CSR is a small text file with necessary details about your domain and company.

SSL providers use the CSR code to verify the validity of the applicants. If the information within the CSR is correct and up to date, the CAs will sign the SSL Certificate. Follow the instructions below to generate the CSR on Webmin:

  1. Open a web browser and log into your Webmin account. The quickest way is via the following URL:, where is the hostname of your server, and 10000 is the default port number
  2. In the left pane, below the Refresh Modules, locate and click the Terminal symbol (second icon from left). Alternatively, use the Alt+K hotkey to open the terminal
  3. In the terminal screen paste the following SSL command to generate your CSR code and private key:
    sudo openssl req -new -newkey rsa:2048 -nodes -keyout /etc/ssl/ -out /etc/ssl/ -subj /C=US/ST=California/L=San Jose/O=GPI Holding LLC/OU=IT/; cat /etc/ssl/

    Note: Replace the highlighted parts according to your personal information! Use the examples below:

    • /etc/ssl/ this is your path to the private key file. Don’t forget to replace the domain name
    • C: here you must enter the two-letter code of the country where your organization is legally registered. For example, US
    • ST: specify the full name of the state or province. For instance, California
    • L: enter the full name of the city, town, or locality. For example, San Jose
    • O: write the legal name of your company. For instance, GPI Holding LLC. If you have a Domain Validation certificate, write NA
    • OU: indicate the department in charge of SSL certificates. For example, IT. If you have a Domain Validation certificate, type NA instead
    • CN: provide the Fully Qualified Domain Name (FQDN) of the website you want to protect. For instance, com. If you bought a Wildcard certificate, put an asterisk in front of the domain name (e.g. *
  4. Next, you need to copy the newly generated CSR code including the —–BEGIN CERTIFICATE REQUEST—– and —–END CERTIFICATE REQUEST—– tags into a text editor of your choice. For example, Notepad
  5. Now, you can use the CSR code during the SSL application. If something is wrong with your CSR, you can use our CSR decoder tool to find the error.

Install an SSL Certificate on Webmin

After you’ve successfully applied for your SSL Certificate, and received all the necessary certificate files from the CA, it’s time to install them on your Webmin server.

  1. Prepare your SSL files. Download the zip archive and extract the files on your local computer. You must have the following files:
    • crt (your primary certificate)
    • ca-bundle (your root and intermediate certificates)

      Note: yourwebsite_com is your domain name here.

  2. Log into your Webmin server via the web browser
  3. In the left menu, click Others and then select Upload and Download
  4. On the main page, select the Upload to server tab
  5. In the Files to upload section, locate and add your primary certificate file (the one with .crt extension) and your Ca bundle file (the one with .ca-bundle extension)
  6. Next, you have to configure Apache using Webmin. If you don’t have Apache installed, use the Un-used Modules menu from the left pane to install it
  7. Go to Servers > Apache Webservers, and from the main page, select the Global Configuration tab
  8. In the Global Configuration tab, click the Configure Apache Modules icon
  9. A large list containing various apache modules will open. Here, you need to find and tick the “ssl” checkbox, and then click the Enable Selected Modules button
  10. It may take a few seconds until the Apache Webserver’s main page loads. When it’s ready, select Create virtual host and add the following parameters:
    • Port: select port 443 (the default port for HTTPS connection)
    • Document Root: enter the path to the document root folder
    • Server Name: specify your domain name
  11. Click the Create Now button to add a new virtual host
  12. A new Existing virtual hosts tab will appear. Inside the tab, locate the virtual host that you’ve just created, and click on the “globe” button next to it
  13. From the Virtual Server Options page choose SSL Options and adjust the parameters as shown below and then click Save
    • Enable SSL? – tick the YES radio button
    • SSL protocols – uncheck the obsolete the SSLv2 and SSLv3 protocols
    • Certificate/private key file – indicate the server path to your primary certificate file (.crt), and your private key file (.key, generated along with the CSR)
    • Certificate authorities file – specify the server path to your bundle file
  14. To complete the SSL installation, you need to restart Apache. In the left pane, go to System>Boot and Shutdown and tick the Apache checkbox. Next, scroll down to the very bottom of the page and click Restart.
  15. That’s it! You’ve successfully added an SSL Certificate to your Webmin server.

Test your SSL installation

After you install an SSL Certificate on Webmin, it’s highly recommended to test your SSL installation for potential vulnerabilities. Use one of these advanced SSL tools to scan your website and get instant SSL reports.

Where to buy the best Webmin SSL Certificate?

If you’re looking for a great shopping experience, then SSL Dragon is your best SSL seller. Our intuitive and user-friendly website will smoothly guide you through the entire range of SSL Certificates. All our products are issued by reputable Certificate Authorities and are compatible with Webmin. We offer the following SSL validation types:

Enjoy the lowest prices on the market, and dedicated customer support for any certificate you choose. And, if your struggling to find the perfect cert for your website, use our SSL Wizard and Advanced Certificate Filter tools to get a helping hand.

If you find any inaccuracies, or you have details to add to these SSL installation instructions, please feel free to send us your feedback at [email protected]. Your input would be greatly appreciated! Thank you.