知識庫

在 Webmin 產生 CSR

Let us describe the steps for generating a CSR with the help of the tools, available within the interface of Webmin control panel:

  • Log in to Webmin interface in a web browser. Usually, it can be done via the following URL: https://example.com:10000, where example.com stands for the hostname of the server and 10000 is a default port number.
  • Hover the mouse over the panel on the left side of the page and click Others - Command Shell.

    csr_webmin_1

  • By default, you will be at the home directory of the server. By running 'cd folder_name' command, you can navigate to the folder where you would like to create CSR and Private key files. Also, you can create a new folder by running 'mkdir folder_name'.
  • While you are at the desired directory, paste the following command into the command prompt field:

    openssl req -new -newkey rsa:2048 -nodes -out example_com.csr -keyout example_com.key -subj '/C=CC/ST=StateName/L=CityName/O=OrgName/OU=OrgUnit/CN=example.com/emailAddress=admin@example.com' ,

    where example_com.csr and example_com.key would be generated as CSR and Private key files respectively. The names of the files can be changed to other values so that they can be easily distinguished further. Also, it is required to replace next values in the command with those, which are applicable for the domain name in question:

    - CC - 2 letter country code abbreviation. Feel free to look up for the correct country code in this online directory;
    - StateName - the name of the state or the city name if there is no state;
    - CityName - the name of the city;
    - OrgName - the name of the company or 'NA' if there is no registered company;
    - OrgUnit - the name of the department within the company, which is in charge of SSL management, or just 'NA' if there is no unit;
    - example.com - the domain name, for which the SSL certificate will be issued. Here you can check how to put the domain name to CSR correctly;
    - admin@example.com - the administrative contact email address.

    Note! For OV and EV certificates, it is obligatory to specify a legal company name and an existing department in Organization and Organization unit fields since those certificates are issued to registered companies and imply a more advanced validation level.

    Note! All of the fields must be filled only with alphanumeric symbols and no special ones are allowed (e.g. '&', '/', '^', etc.).

    csr_webmin_2

  • Run the command.
  • If everything is done correctly, the output of the executed command will be displayed, like on the screenshot below.

    csr_webmin_3

  • Hover the mouse over the panel on the left side and click File Manager in the expanded Others subcategory.

    csr_webmin_4

  • Browse over the file system to open the folder where the CSR and Private key files were generated. Download example_com.csr file by double-clicking on it.

    csr_webmin_5

  • Once the file is downloaded, you are ready to activate the SSL certificate in ZTABOX.

At the time, when the SSL certificate is issued by the Certificate Authority, you will be able to install it according to this guide.