Generating a Certificate Signing Request (CSR) - Apache 2.x
Print this Article
Comment on this Article
Last Updated:
October 26, 2009 3:17 PM
Follow the below instructions to generate a CSR for your website. When you have completed generating your CSR, cut/copy and paste it into the CSR field on the SSL certificate-request page.
To Generate a Triple-DES Encrypted Key Pair and a Certificate Signing Request (CSR)
In a command prompt, enter the following, pressing Enter after each line:
-
cd /usr/bin/ (/your path to openssl/)Enter a passphrase when prompted to.
- openssl genrsa -des3 -out <name of your certificate>.key 2048
- openssl req -new -key <name of your certificate>.key -out <name of your certificate>.csr
NOTE: If you are requesting a Wildcard certificate, please add an asterisk (*) on the left side of the Common Name (e.g., "*.coolexample.com" or "www*.coolexample.com"). This will secure all subdomains of the Common Name.