Generating a key pair and request with an Apache load balancer server

If you are using Apache as your load balancer server, you must generate a key pair and specify the keystore.

Procedure

  1. Log on to the load-balancing server as a non-root user with administrative privileges.
  2. On Windows computers, start a Command Prompt window with the Run as administrator option. On Linux® computers, open a shell.
  3. Go to the /bin directory in the web server home directory to use as the keystore.
  4. To generate a certificate request, enter the following command :
    • For Windows operating systems:
      openssl req -new -sha1 -newkey rsa:1024 -config %APACHE_HOME%\conf\openssl.cnf -nodes -keyout server_pkey.key -out certreq.csr 
    • For Linux operating systems:
      openssl req -new -sha1 -newkey rsa:1024 -config $APACHE_HOME\conf\openssl.cnf -nodes -keyout server_pkey.key -out certreq.csr 
  5. Open the httpd.conf file in a text editor and uncomment following line:
    LoadModule ssl_module modules/mod_ssl.so Secure (SSL/TLS) connections Include conf/extra/httpd-ssl.conf