Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Obtaining a SSL certificate from a Certificate Authority (CA) for the  Apache Server


Perform the following procedure to obtain an SSL certificate from a Certificate Authority (CA) for the Apache server.

Before you begin

Before you begin this procedure, you must set the environment variable appropriate for your operating system: 

  • (Microsoft Windows) OPENSSL_CONF=C:\Program Files\BMC Software\TrueSight\pw\apache\conf\openssl.cnf 
  • (UNIX or Linux) LD_LIBRARY_PATH=$LD_LIBRARY_PATH: /usr/pw/apache/lib/

To obtain an SSL certificate from a Certificate Authority (CA) for the Apache server

  1. Create an RSA private key for your Apache server.
    1. Access the appropriate directory for your operating system:
      • (Microsoft Windows) installationDirectory\pw\apache\bin
      • (UNIX or Linux) /usr/pw/apache/openssl/bin
    2. Enter the the command to create an RSA private key that is Triple-DES encrypted and PEM formatted that is appropriate for your operating system:
      (Microsoft Windows)

      openssl genrsa -des3 -out my-server.key 1024

      (UNIX or Linux)

      openssl genrsa -des3 -out server.key 1024
    3. Back up the key file that you just created and remember the pass-phrase you had to enter at a secure location. You can see the details of this RSA private key by entering the command appropriate for your operating system:
      (Microsoft Windows)

      openssl rsa -noout -text -in my-server.key 

      (UNIX or Linux)

      openssl rsa -noout -text -in server.key 
  2. Create a Certificate Signing Request (CSR) with the server RSA private key.
    1. Access the appropriate directory for your operating system:
      • (Microsoft Windows) installationDirectory\pw\Apache\conf
      • (UNIX or Linux): /usr/pw/apache/openssl/ssl/conf
    2. Copy the files as appropriate for your operating system:
      • (Microsoft Windows) Copy the installationDirectory\pw\Apache\conf\openssl.cnf file into the installationDirectory\pw\Apache\bin directory. 
      • (UNIX or Linux) Copy the /usr/pw/apache/openssl/ssl/conf/openssl.cnf file into the /usr/pw/apache/openssl/bin directory.
    3. Access the appropriate directory for your operating system:
      • (Microsoft Windows) installationDirectory\pw\Apache\bin
      • (UNIX or Linux) /usr/pw/apache/openssl/bin
    4. Enter the command to create a CSR that is PEM formatted that is appropriate for your operating system:
      (Microsoft Windows)

      openssl req -new -key my-server.key -out my-server.csr -config ./openssl.cnf

      (UNIX or Linux)

      openssl req -new -key server.key -out server.csr -config ./openssl.cnf
  3. Send the Certificate Signing Request (CSR) to a Certifying Authority (CA) for signing using one of the following methods:
  4. Replace the dummy key and certificate files with the real key and certificate files that you have created by following these steps:
    • Access the appropriate directory for your operating system:
      • (Microsoft Windows) installationDirectory\pw\Apache\conf
      • (UNIX) or (Linux) /usr/pw/apache/conf
    • Replace the key file appropriate for your operating system with the RSA private key file that you created in Step 1:
      • (Microsoft Windows) Replace my-server.key in the installationDirectory\pw\Apache\conf directory.
      • (UNIX or Linux) Replace the server.key file in the /usr/pw/apache/conf directory.
    • Replace the certificate file appropriate for your operating system with the RSA private certificate my-server.crt file that you created in Step 2:
      • (Microsoft Windows) Replace the my-server.cert file in the installationDirectory\pw\Apache\conf directory.
      • (UNIX or Linux) Replace the server.crt file in the /usr/pw/apache/conf directory.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*