Generate a CSR: c2Net Stronghold

You can create a Certificate Signing request in C2Net Stronghold with either a GUI (graphical user interface) or Command Line access. To generate a Certificate Signing Request (CSR), please do the following:

C2Net Stronghold GUI Certificate Signing Request Generation

  • Step 1 of 7

    Enter the Stronghold Configuration Manager.

  • Step 2 of 7

    Select New Key Generation to create a new key file.

  • Step 3 of 7

    Enter key size (2048 bits) and follow instructions for generating the random data.

  • Step 4 of 7

    When creating a CSR you must follow these conventions.

    The following characters cannot be accepted: < > ~ ! @ # $ % ^ * / ( ) ?. &

  • Step 5 of 7

    The key pair will be generated and saved in the file:

    strongholdserverroot/private/hostname.key. /usr/local/stronghold/private/

  • Step 6 of 7

    Edit this file to extract the CSR data. This is the text beginning with:


    up to and including the text:


  • Step 7 of 7

    You should now have a CSR, which you can use to request an SSL certificate.

C2Net Stronghold Command Line Certfiicate Signing Request Generation

  • Step 1 of 9

    Certificates and keys are managed with three scripts in Stronghold: genkey, getca and genreq. They are typically stored in /usr/local/ssl/private/.

  • Step 2 of 9

    If you do not already have a key for your server, at the prompt, run genkey and the name of the host for which you are generating the CSR (i.e. ‘genkey yourserver’). This will show two filenames - the key file and CSR file - and display their respective locations.

  • Step 3 of 9

    If you do already have a key for your server, at the prompt, run genreq, not genkey, to create the CSR only.

  • Step 4 of 9

    The script will prompt you to be certain you aren't overwriting a previous certificate request and key.

  • Step 5 of 9

    You will be prompted for the key size in bits - use the highest available (2048).

  • Step 6 of 9

    When prompted, hit keys randomly. When the script beeps and the counter shows zero, stop. (This random data is used to create a unique public and private key pair).

  • Step 7 of 9

    When asked, enter ‘y’ to proceed. You will be prompted for specific information about your company, your server and your Certified Authority. (For your CA, select the option Other&8217;).

  • Step 8 of 9

    The genkey script will create the CSR automatically. It is highly recommended that you back up your key file and CSR and keep them some place secure. The key is required to install your certificate.

  • Step 9 of 9

    Copy the entire contents of the CSR, including: