Skip to content

Creating a CSR

A CSR (certificate signing request) is the application a certificate grows out of. It carries the domain, the organization details and the public key. The matching private key is created in the same step and stays with you; it is never transmitted.

Terminal window
openssl req -new -newkey rsa:2048 -nodes \
-keyout private.key -out request.csr

OpenSSL then asks for the fields:

FieldContent
Country NameTwo letter country code, for example DE
State or Province NameState or province
Locality NameCity
Organization NameThe legal name of the company
Organizational Unit NameDepartment, optional
Common NameThe hostname the certificate is meant for
Email Addressoptional

Optional fields are skipped with Enter. Two files end up in the directory: request.csr is what you submit, private.key is what you keep.

For OV certificates the organization name has to match the registered company name exactly, otherwise validation by the certificate authority fails.

  1. Open the IIS manager and select the server name in the connections pane.
  2. Double click server certificates.
  3. Click create certificate request in the actions pane.
  4. Fill in the form: common name (hostname), organization, organizational unit (optional), city, state, country.
  5. In the cryptography settings choose a bit length of at least 2048.

Then store the CSR file somewhere safe.

It is the part that cannot be replaced:

  • Never hand it out. Whoever holds it can read the encrypted connection.
  • If it is lost, reissuing does not help. You then need a new CSR with a new key and a new certificate.
  • If it is exposed, the certificate has to be revoked. The workflow for that is in the recipe revoke and replace.

Creating a separate CSR per certificate is the safe habit; a CSR itself does not expire, but it should be used promptly.

You submit the CSR when ordering in the dash. Once issued, the certificate is ready for download and gets installed: Apache or nginx.