Certificate signing request

Also known as: CSR

On this page 7

A certificate signing request (CSR) is a structured message, signed with the applicant’s private key, that asks a certificate authority to issue a certificate binding a public key to a name such as a domain. In Internet trust, the CSR is the first formal step of certificate issuance: it carries the public key and requested identity, and its signature proves that the applicant controls the matching private key.

The dominant format is PKCS #10, specified in RFC 2986 and encoded in ASN.1 DER, usually wrapped in Base64 as a PEM block that begins with -----BEGIN CERTIFICATE REQUEST-----. A CSR never contains the private key, so it can be sent over email, pasted into a web form or transmitted by an ACME client without exposing secret material.

What a certificate signing request contains

A PKCS #10 request consists of three parts: the certification request information, an algorithm identifier and a digital signature over the first part. The request information holds a version number, the subject name, the subject public key and an optional set of attributes.

The table below summarizes the fields that matter most when a CSR is prepared for a TLS certificate.

FieldContentRole in issuance
SubjectDistinguished name such as CN, O, CRequested identity, often partly ignored
Subject public key infoAlgorithm and public keyBecomes the key in the certificate
Extension requestSubject alternative names, key usageLists the domain names to cover
Signature algorithmFor example SHA-256 with RSA or ECDSADefines how the request was signed
SignatureValue computed with the private keyProves possession of the private key
Main fields of a PKCS #10 certificate signing request

Modern public certificates identify servers through the subject alternative name (SAN) extension, not the common name. The CA/Browser Forum Baseline Requirements treat the common name as deprecated and require every domain name to appear in the SAN list, so a correct CSR places all hostnames in the extension request attribute.

How the CSR proves possession of the private key

The CSR signature is a proof-of-possession mechanism. The applicant signs the request information with the private key, and the certificate authority verifies that signature with the public key embedded in the same request. If verification succeeds, the CA knows the requester holds the private key that matches the public key it is about to certify.

This check prevents an attacker from submitting someone else’s public key under a name the attacker controls. It does not, however, prove that the requester owns the domain or organization named in the subject. That separate question is answered by domain or organization validation, which the CA performs outside the CSR.

The typical issuance sequence follows these steps:

  1. Generate a key pair on the server or in a hardware security module.
  2. Build and sign the CSR with the subject, SAN list and public key.
  3. Submit the CSR to the CA through a portal, API or ACME client.
  4. Complete validation of domain control or organization identity.
  5. Receive the certificate and install it with the original private key and the intermediate chain.

Key types and parameters in a certificate signing request

The public key inside the CSR determines the algorithm and strength of the resulting certificate. Certificate authorities accept only key types permitted by the Baseline Requirements, and browsers reject weaker ones.

Key typeTypical size or curveCharacteristics
RSA 20482048-bit modulusMinimum accepted size, widest compatibility
RSA 3072 or 40963072 or 4096 bitsHigher margin, slower handshakes
ECDSA P-256NIST curve secp256r1Small keys, fast signing, broad support
ECDSA P-384NIST curve secp384r1Higher strength, slightly slower
Common key choices for TLS certificate requests

The CA may ignore or override many subject fields. Domain Validation certificates usually keep only the SAN entries, while Organization Validation and Extended Validation certificates take organization details from the vetted records of the CA, not from the CSR text.

A CSR is often confused with the certificate itself or with the key pair, yet each artifact has a distinct purpose and sensitivity. The following comparison clarifies the difference.

ArtifactCreated byContainsConfidentiality
Private keyApplicantSecret signing keyMust stay secret
Certificate signing requestApplicantPublic key, names, applicant signaturePublic, safe to share
Issued certificateCertificate authorityPublic key, names, CA signaturePublic by design
Self-signed certificateApplicantPublic key, names, own signaturePublic, not trusted by browsers
CSR, private key and certificate side by side

In the ACME protocol used by Let’s Encrypt and other CAs, the client submits a CSR in the order finalization step after domain validation succeeds. Tools such as Certbot generate this request automatically, so many administrators never see it, but the same PKCS #10 structure is still exchanged. An alternative format, the Certificate Request Message Format (CRMF), exists for enterprise PKI but is rarely used for public TLS.

Common mistakes when generating a certificate signing request

Most issuance problems trace back to how the CSR and its key were created, not to the CA. The table below links frequent symptoms to their causes and fixes.

SymptomLikely causeFix
Certificate does not match keyCSR generated on another machineInstall with the original private key or reissue
Browser name mismatchHostname only in common nameList every name in the SAN extension
CA rejects the requestKey too small or unsupported curveUse RSA 2048 or ECDSA P-256 or stronger
Private key lost after issuanceKey not backed up or overwrittenGenerate a new key and new CSR, then reissue
Key exposure suspectedKey stored unencrypted or sharedRevoke the certificate and request a new one
Typical CSR problems and their resolution

A good practice is to generate a fresh key pair for each renewal rather than reusing an old key indefinitely, and to keep the private key on the server that will use it. Inspecting a request with a command such as openssl req -in request.csr -noout -text before submission catches missing SAN entries and wrong key sizes early.

Understanding it simply

A certificate signing request is an application form for a website certificate. It lists the website names and includes a public key, which is like a padlock that anyone may see.

The form is signed with a secret key that never leaves the server, which shows the applicant really owns the padlock. The certificate authority checks this signature, confirms the applicant controls the website, and then returns a signed certificate that browsers trust.

Applied in practice

An administrator at a mid-sized online retailer must renew the TLS certificate for shop and checkout hostnames before it expires in two weeks. The certificate is an Organization Validation certificate bought from a commercial CA, so renewal is not automated through ACME.

On the web server, the administrator generates a new ECDSA P-256 key and a CSR that lists both hostnames in the SAN extension, then checks the request with OpenSSL and pastes the PEM text into the CA portal. The CA reuses its existing organization vetting, validates domain control through a DNS record, and issues the certificate within an hour.

Because the private key was created on the same server and never copied elsewhere, installation succeeds on the first attempt. Browsers show no name mismatch errors, and handshake times drop slightly compared with the previous RSA 4096 certificate.