How to create a Certificate Signing Request for Apache HTTP Server?
![Apache HTTP Server Logo](https://d3jrq3tjjnb829.cloudfront.net/1532966910_Apache-HTTP-Server-Logo-new.png)
To generate a Certificate Signing Request (CSR) for Apache HTTP Server, perform the following steps. They will enable you to get the CSR to complete the order process !
Step 1: Generating the Key Pair
NOTE The utility "OpenSSL" is used to generate both Private Key (key) and Certificate Signing request (CSR). OpenSSL is usually installed under /usr/local/ssl/bin. If you have a custom install, you will need to adjust these instructions appropriately.
- Type the following command at the prompt in OpenSSL:
genrsa –des3 –out www.mydomain.com.key 2048 - Enter the PEM Pass Phrase (This MUST be remembered)
Note: If you do not wish to use a Pass Phrase, do not use the -des3 command. It will however leave the private key unprotected.
Important Information: for all Windows OpenSSL users, please remove the -des3 parameter when generating the key. This will prevent any installation errors however will leave the private key unprotected.
![Apache SSL](https://d3jrq3tjjnb829.cloudfront.net/cms/images/1349894469_apachessl1.png)
Step 2: Generating the CSR
- Type the following command at the prompt in OpenSSL:
req –new –key www.mydomain.com.key –out www.mydomain.com.csr - Input the information for the Certificate Signing Request. This information will be displayed in the certificate.
- Please verify the CSR, to insure all information is correct. Use the following command:
req -noout -text -in www.mydomain.com.csr
Note: You will be prompted for the PEM Pass Phrase if you included the "-des3" command. Type it in now.
NOTE: There is a known issue with Apache/OpenSSL Windows Based Installations. If you recieve an error with the above command, Please enter the following:
req -new -key www.mydomain.com.key -out www.mydomain.com.csr -config openssl.cnf
Common Name – Must match the URL you plan to secure exactly – is usually your fully-qualified domain name (e.g. devel.ssl247.co.uk or mail.devel.ssl247.co.uk). Remember the www. Is important – include it if you want to secure https://www.yoursite.com & exclude it if you want to secure https://yoursite.com.
Organisation - The legal (officially registered) name of your organization/company include Inc., LLP., Pvt, Plc. Ltd. SARL., etc.
Organisational unit - The name of your department within the organization (this is often "IT," "Web," or is just left blank).
City/locality - The city or town in which your organization is located.
State/province - The state in which your organization is located.
Country - Click here for the official list of ISO country codes for this field.
Note DO NOT Enter the following: "Email Address"; "A challenge password" & "An optional company name".
![Apache SSL 2](https://d3jrq3tjjnb829.cloudfront.net/cms/images/1349894470_apachessl2.png)
- The CSR will now be created, and can be submitted via the website
You are now ready to submit your CSR for the certificate you wish to install.