Generating a Certificate Request Print

  • 0

Overview

Generating a CSR or Certificate Signing request is part of the process of getting a new certificate issued. It contains your public key and some other information like the name and location of your business and what domain you will be getting a certificate for.

The Certificate Authority (CA) will take the CSR, then validate that you own the domain you are requesting a certificate for. This is usually done by the CA sending an email with a link you must click to validate domain ownership. When initiating this process, you will usually be presented with a list of email addresses the CA is willing to send the validation email to.

When your ownership of the domain has been asserted, you will then be given access to the signed certificate.

If you are unsure about any part of this process, feel free to open a ticket and we will assist you. Otherwise you may follow the instructions below on how to generate the CSR.

WHM/cPanel

Please follow the instructions given by cPanel: https://documentation.cpanel.net/display/68Docs/Generate+an+SSL+Certificate+and+Signing+Request


If you have any questions, please contact us for assistance.


Linux/Apache

SSH to your Linux server and run the following command:

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

You will then be prompted for some additional information. The important part is when it says "Common Name". Fill in your domain name here. (e.g. www.example.com)

Do not add a challenge password.

When done, run this:

cat CSR.csr privateKey.key

example:

$ cat CSR.csr privateKey.key
-----BEGIN CERTIFICATE REQUEST-----
MIIC6DCCAdACAQAwgYoxCzAJBgNVBAYTAkVYMQswCQYDVQQIDAJFWDEMMAoGA1UE
BwwDRVhBMRAwDgYDVQQKDAdFWEFNUExFMRAwDgYDVQQLDAdFWEFNUExFMRgwFgYD
VQQDDA93d3cuZXhhbXBsZS5jb20xIjAgBgkqhkiG9w0BCQEWE2V4YW1wbGVAZXhh
bXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDuDY7+HztO
XVAFj4vKJnFFJFRjhgTtW+KtqVQL0Dm5qJQ8s0cbJwDT32P4WzO6dlLmR3uMXg/H
ztLinKt8GZwD3V3n3XfsGZAwxAURz/GU87UuLroSbXwB8qJOZ5DxIrfcZrnYjgJU
QqjhlXX+cK4f5BYNH47SaqpiwPt00OtfT2P22i5AbzUwt7nXALCHSIeBzgHtngH8
hk2QttopLX+IuVPHcfI/m6EGWkXx0g6gCmWZURejT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jJqJT73MUaewHNoOZUC
/1lmkwOqMXqru5kkFCNPJlNq
-----END PRIVATE KEY-----

Copy all the text that is output, including "-----BEGIN CERTIFICATE REQUEST-----","-----END CERTIFICATE REQUEST-----", etc... Now save this information somewhere safe. If the private key is lost, the certificate can no longer be used. When the web form asks for the CSR, you supply including "-----BEGIN CERTIFICATE REQUEST-----" to "-----END CERTIFICATE REQUEST-----"


Windows/IIS

Please follow the instructions provided by Microsoft here: https://technet.microsoft.com/en-us/library/cc995054.aspx

These steps are followed on your server where IIS is, and not your local machine.


When it mentions your common name, that is your domain. For example, "www.example.com".

When you get to the part where it shows you some garbled text like above, please copy it. Also note that in the IIS certificate manager, no private key will be displayed. This is normal, as windows manages it for you. When you go to put the new certificate in, it will pair it with the proper private key for you.

The general steps to follow are as follows:

  1. Open IIS manager
  2. Click on the server the server in the left hand tree
  3. You should see an icon that says "Server Certificates" in the main panel of the IIS window. Double Click that icon.
  4. In here, click "Create Certificate Request"
  5. Follow the on screen instructions. "Common name" must be the domain name you put in for the order. If you used "www.example.com", you must fill in "www.example.com" here. If you just did "example.com", you must fill in "example.com". All other fields must be filled, but they do not matter so much.
  6. Use 2048 bit or higher. 2048 or 4096 are recommended.
  7. When you get to the step where it asks for a name, click the "..." box and put it on the desktop.
  8. We are now done in IIS.
  9. Now open notepad, then click file -> open and open the file you just saved from the IIS CSR generator.
  10. This text is your CSR, this is what you copy and give the certificate order setup.

Was this answer helpful?

« Back

Powered by WHMCompleteSolution