How to generate 2048-bit keypair using Sun One or iPlanet 6.1 servers?

  1. Log on to the web server that you want to create the CSR for.
  2. Open a command prompt and go to the Sun One Webserver admin bin directory (i.e. c:\Sun\WebServer6.1\bin\https\admin\bin)
  3. Run the following command:

    certutil -R -s “,OU=Test,O=India,L=Mumbai,ST=MAH,C=IN” -a -o mycsr.csr -k rsa -g 2048 -v 12 -d (location of Sun One WebServer directory)\alias -P -Z SHA1

Note: Change the value of CN, OU, O, L, ST and C fields appropriately to suit your website and company. Change the value of the -P option to suit the web instance (i.e. c:\Sun\WebServer6.1\alias).

This will generate the files https- and https- files.  The output file, mycsr.csr, will be the certificate signing request file.