Contact us at |support@ssldragon.com
  • install an ssl certificate on webmin

How to install an SSL Certificate on Webmin?

Wednesday, February 6th, 2019

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. Part three of the tutorial brings you interesting facts about the Webmin history, while in part four 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
Webmin history and versions
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: https://yourwebsite.com:10000, where yourwebsite.com 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/yourwebsite.com.key -out /etc/ssl/yourwebsite.com.csr -subj /C=US/ST=California/L=San Jose/O=GPI Holding LLC/OU=IT/CN=yourwebsite.com; cat /etc/ssl/yourwebsite.com.csr

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

    • /etc/ssl/yourwebsite.com.key: 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. *.yourwebsite.com)
  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 decoder tool to find the error. To rectify it, you’ll need to regenerate your CSR code.

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. In 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 the 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 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.

Webmin history and versions

Webmin is a popular web control panel for Unix-like systems written in Perl. Developed by Jamie Cameron and the Webmin community, Webmin is available for CentOS, Debian, RHEL, and Ubuntu. Recent versions can also run on Windows. Webmin is primarily used for disk quotas configurations, as well as open source apps control such as PHP, MSQL or Apache HTTP Server. Below you’ll find the latest versions of Webmin:

  • Version 1.890 (19th July 2018)
  • Version 1.881 (16th March 2018)
  • Version 1.880 (4th March 2018)
  • Version 1.870 (8th December 2017)
  • Version 1.860 (10th October 2017)
  • Version 1.850 (28th June 2017)
  • Version 1.840 (8th May 2017)

Click here to access the entire changelog.

Where to buy the best SSL Certificate for Webmin?

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]com. Your input would be greatly appreciated! Thank you.