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.
| Field | Content | Role in issuance |
|---|---|---|
| Subject | Distinguished name such as CN, O, C | Requested identity, often partly ignored |
| Subject public key info | Algorithm and public key | Becomes the key in the certificate |
| Extension request | Subject alternative names, key usage | Lists the domain names to cover |
| Signature algorithm | For example SHA-256 with RSA or ECDSA | Defines how the request was signed |
| Signature | Value computed with the private key | Proves possession of the private key |
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:
- Generate a key pair on the server or in a hardware security module.
- Build and sign the CSR with the subject, SAN list and public key.
- Submit the CSR to the CA through a portal, API or ACME client.
- Complete validation of domain control or organization identity.
- 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 type | Typical size or curve | Characteristics |
|---|---|---|
| RSA 2048 | 2048-bit modulus | Minimum accepted size, widest compatibility |
| RSA 3072 or 4096 | 3072 or 4096 bits | Higher margin, slower handshakes |
| ECDSA P-256 | NIST curve secp256r1 | Small keys, fast signing, broad support |
| ECDSA P-384 | NIST curve secp384r1 | Higher strength, slightly slower |
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.
Certificate signing requests compared with related artifacts
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.
| Artifact | Created by | Contains | Confidentiality |
|---|---|---|---|
| Private key | Applicant | Secret signing key | Must stay secret |
| Certificate signing request | Applicant | Public key, names, applicant signature | Public, safe to share |
| Issued certificate | Certificate authority | Public key, names, CA signature | Public by design |
| Self-signed certificate | Applicant | Public key, names, own signature | Public, not trusted by browsers |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Certificate does not match key | CSR generated on another machine | Install with the original private key or reissue |
| Browser name mismatch | Hostname only in common name | List every name in the SAN extension |
| CA rejects the request | Key too small or unsupported curve | Use RSA 2048 or ECDSA P-256 or stronger |
| Private key lost after issuance | Key not backed up or overwritten | Generate a new key and new CSR, then reissue |
| Key exposure suspected | Key stored unencrypted or shared | Revoke the certificate and request a new one |
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.