Certificate Signing Request (CSR) Generation - C2Net Stronghold

Note: Keys and certificates are managed through three scripts: genkey, getca and genreq. These are part of the normal Stronghold distribution. Keys and certificates are stored in the directory$SSLTOP/private/, where SSLTOP is typically /usr/local/ssl.

To generate a key pair and CSR for your server:

  1. Run genkey, specifying the name of the host or virtual host: genkey hostname. The genkey script displays the filenames and locations of the key file and CSR file it will generate:

    Note: If you already have a key for your server, run genreq [servername] to generate only the CSR.

  2. Press Enter. The genkey script reminds you to be sure you are not overwriting an existing key pair and certificate.
  3. When prompted, enter a key size in bits. It is recommended that you use the largest key size available: e.g. 1024 if available.
  4. When prompted, enter random key strokes. Stop when the counter reaches zero and genkey beeps. This random data is used to create a unique public and private key pair.
  5. When prompted, enter 'y' to create the key pair and CSR.

Back up your key file and CSR on a floppy disk and store the disk in a secure location. If you lose your private key or forget the password, you will not be able to install your certificate.