How to Generate a CSR on Webmin

In this step-by-step tutorial, we will show you how to generate a CSR on Webmin.

Just follow the steps below:

Step 1. Log into your Webmin account

Open a web browser and log into your Webmin account. The quickest way is via the following URL: is the hostname of your server, and 10000 is the default port number

Step 2. Open the Terminal

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.

Step 2. Generate the CSR

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. *

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.

Save 10% on SSL Certificates when ordering today!

Fast issuance, strong encryption, 99.99% browser trust, dedicated support, and 25-day money-back guarantee. Coupon code: SAVE10

Written by

Experienced content writer specializing in SSL Certificates. Transforming intricate cybersecurity topics into clear, engaging content. Contribute to improving digital security through impactful narratives.