WHMCS-bridge

How to Generate a CSR for Ubuntu with Apache 2 Using OpenSSL Print

  • Ubuntu SSL Apache, Centos SSL Apache
  • 0

How to Generate a CSR for Ubuntu with Apache 2 Using OpenSSL

If you prefer to build your own shell commands to generate your Ubuntu with Apache 2 CSR, follow the instructions below.

  1. Log in to your server via your terminal client (ssh).
  2. Run Command

    At the prompt, type the following command:

    Note: Make sure to replace server with the name of your server.
    openssl req –new –newkey rsa:2048 –nodes –keyout server.key –out server.csr

 

  1. Generate Files

    1. You've now started the process for generating the following two files:

      • Private-Key File: Used to generate the CSR and later to secure and verify connections using the certificate.
      • Certificate Signing Request (CSR) file: Used to order your SSL certificate and later to encrypt messages that only its corresponding private key can decrypt.
    2. When prompted for the Common Name (domain name), type the fully qualified domain (FQDN) for the site that you are going to secure.

      Note: If you're generating an Apache CSR for a Wildcard certificate, make sure your common name starts with an asterisk (e.g., *.example.com).
    3. When prompted, type your organizational information, beginning with your geographic information.

      Note: You may have already set up default information.
    4. Now, your OpenSSL .csr file is created.
  2. Order Your SSL/TLS Certificate
    1. Open the .csr file you created with a text editor.
    2. Copy the text, including the -----BEGIN NEW CERTIFICATE REQUEST----- and -----END NEW CERTIFICATE REQUEST----- tags, and paste it in to the order form.
  3. Save Private Key. Save (back up) the generated .key file. You need it later to install your SSL certificate.
  4. Install Certificate. After you've received your SSL certificate, you can install it on your server.

Was this answer helpful?

« Back

WordPress and WHMCS integration by i-Plugins