.CSR

CSR File

Certificate Signing Request (PKCS#10)
Ask a question
QUICK ANSWER

A CSR file is a Certificate Signing Request -- a block of Base64 text generated on your server and submitted to a Certificate Authority to apply for an SSL/TLS certificate. Inspect it with OpenSSL (openssl req -in request.csr -noout -text) or paste it into an online CSR decoder. It is safe to share; it contains only public information.

Developer: RSA Security / IETF (PKCS#10 standard); generated by OpenSSL, web servers and CA tools Category: Security / Certificate Files Open standard MIME: application/pkcs10
OPENS ON Windows macOS Linux Web
Related: .PEM · .P7M · .CER · .REQ

On this page

19k+ extensions indexed
Last reviewed Jun 27, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the CSR file format?

.csr files are used as part of the certificate signing request procedure. When a server administrator needs an SSL/TLS certificate from a Certificate Authority (CA), they first generate a .csr file and submit it to the CA for signing.

What kind of data do .csr files hold?

.csr files store the requester's identity information along with:

  • country code,
  • organization name, address and locality,
  • domain (Common Name) and email,
  • public key.

The data is encoded in PEM format - Base64 text wrapped between -----BEGIN CERTIFICATE REQUEST----- and -----END CERTIFICATE REQUEST----- headers, following the PKCS#10 standard (RFC 2986). The contents are not encrypted; instead, the request is digitally signed with the requester's private key to prove possession of the key pair.

What are .csr files used for?

.csr files are generated using a public and private key pair. The private key should be at least 2048 bits long for security reasons. It is also important that the key be safely and securely stored, as there is no way to recover it if lost or destroyed. Without the private key, the issued certificate cannot be used.

Generated .csr files are submitted to a Certificate Authority to obtain signed certificates for authenticating web servers, securing emails with S/MIME, and other PKI uses. Once the CA issues the .crt or .cer file, the .csr itself has no further use. Modern ACME clients such as Certbot (Let's Encrypt) generate and submit .csr files automatically, so many administrators never handle a .csr by hand. .csr files can be inspected using OpenSSL (openssl req -text -in file.csr) or online CSR decoder tools.

Security & safety

RISK: LOW

A CSR is safe to share - by design it is sent to a Certificate Authority and contains only public information plus your public key. It carries no secret. The real caution is the opposite mistake: never share, upload or paste your private .key file (generated with the CSR) into any online tool - that IS the secret that protects your certificate. Also generate CSRs with at least RSA 2048-bit (or ECDSA) keys, and prefer generating them locally with OpenSSL or your server panel rather than letting a third-party website generate the key pair for you (some 'free CSR generator' sites create your key on their server, which compromises it).

Format details

in a nutshell
FULL NAMECertificate Signing Request (PKCS#10)aka Certificate Signing Request, CSR
DEVELOPERRSA Security / IETF (PKCS#10 standard); generated by OpenSSL, web servers and CA toolssince PKCS#10 published by RSA Security in the 1990s; standardized as RFC 2986 (2000)
MIME TYPEapplication/pkcs10
TYPEPKCS#10 certification request - Base64 PEM text wrapping a DER ASN.1 structure
STANDARDOpen · royalty-free
This extension is also used by…
  • Fast SMS Set SMS Relay configuration - An obscure SMS-relay config file uses .csr (the name recorded in this site's db); unrelated to certificates and not the dominant meaning.

Programs that open CSR files

Windows3 apps
OpenSSL Open-source Inspect a CSR: 'openssl req -in request.csr -noout -text -verify'. Generate one: 'openssl req -new -newkey rsa:2048 -keyout private.key -out request.csr'. The universal tool.
Microsoft IIS Manager (built-in) Built-in Server Certificates → 'Create Certificate Request' walks you through generating a CSR; later 'Complete Certificate Request' installs the issued certificate. The db-recommended Windows tool.
Notepad / any text editor Open-source A PEM CSR is plain text - open it to copy/paste the Base64 block into a CA's order form. You can't read the details this way (it's Base64); use OpenSSL or a CSR decoder for that.
macOS2 apps
OpenSSL / LibreSSL Open-source Pre-installed in Terminal: 'openssl req -in request.csr -noout -text' to inspect, or generate a new CSR + key pair.
Keychain Access (built-in) Built-in Certificate Assistant → 'Request a Certificate From a Certificate Authority' creates a CSR file on macOS.
Linux2 apps
OpenSSL Open-source Pre-installed: 'openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out request.csr' to generate; 'openssl req -in request.csr -noout -text' to inspect. Standard on Apache/Nginx hosts.
Certbot (ACME / Let's Encrypt) Open-source Generates and submits a CSR automatically when obtaining a free Let's Encrypt certificate - you usually never see the .csr file.
Web1 app
CSR Decoder (e.g. SSL vendors' online decoders) Free Paste the Base64 CSR to read the domain/organization it requests and check it's valid - useful before submitting. Never paste a private key into any online tool, only the public CSR.

Technical details

deep spec
MIME typeapplication/pkcs10 (also application/x-pem-file, application/pkcs10+pem)
File encodingBase64 PEM text (ASCII) in almost all cases; binary DER (ASN.1) is rare
PEM header-----BEGIN CERTIFICATE REQUEST----- … -----END CERTIFICATE REQUEST----- (older tools use -----BEGIN NEW CERTIFICATE REQUEST-----)
Binary magic bytesDER variant starts with ASN.1 SEQUENCE tag 0x30 0x82; PEM variant has no binary magic bytes
Internal structureASN.1 DER CertificationRequest: subject DN (CN, O, OU, L, ST, C), subject public key info, optional attributes (SANs), and a self-signature
Self-signature algorithmTypically sha256WithRSAEncryption or ecdsa-with-SHA256; proves possession of the corresponding private key
Key length (RSA)Minimum 2048 bits; 4096 bits recommended for certificates with long validity periods
EncryptionNone - the CSR carries only the public key and is signed, not encrypted
Typical file size1 KB - 2 KB (a single Base64 block)
Subject DN fieldsCN (Common Name), O (Organization), OU (Organizational Unit), L (Locality), ST (State/Province), C (two-letter country code)
Subject Alternative Names (SANs)Embedded as optional extensions; required for multi-domain TLS certificates since CAs no longer rely solely on CN
LifecycleSingle-use; submitted once to a CA and discarded after the signed certificate is issued
Related extensions.crt / .cer (issued certificate), .pem (same PEM encoding), .key (private key pair), .p10 (alternate extension for PKCS#10)
Platform supportCross-platform: Windows (IIS, OpenSSL), macOS (Keychain Access, OpenSSL), Linux (OpenSSL, Certbot), any TLS/PKI-capable system
ReleasedPKCS#10 published by RSA Security in the 1990s; standardized as RFC 2986 (2000)
Latest versionPKCS#10 v1.7 (RFC 2986, 2000)
Open standardYes · royalty-free
Specificationdatatracker.ietf.org

CSR conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with CSR files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about CSR files.

Frequently asked questions

What is a .csr file?
A Certificate Signing Request - a block of Base64 text you generate on your server and send to a Certificate Authority to apply for an SSL/TLS certificate. It holds your domain/organization details and public key; the matching private key stays secret on your server.
How do I open or read a .csr file?
It's text, but the contents are Base64. To read what it requests, run 'openssl req -in request.csr -noout -text', or paste it into an online CSR decoder. To submit it, just copy the whole block including the BEGIN/END lines.
What's the difference between a CSR and a certificate (.crt)?
A CSR is the application; the .crt/.cer is the issued certificate the CA signs and returns. You submit the CSR, you install the certificate. They are different files at different stages of the process.
How do I generate a CSR?
With OpenSSL: 'openssl req -new -newkey rsa:2048 -nodes -keyout private.key -out request.csr' (it prompts for your domain and organization). On Windows IIS use 'Create Certificate Request'; on macOS use Keychain Access's Certificate Assistant.
Is it safe to share my CSR?
Yes - a CSR contains only public information and your public key, and is meant to be sent to a CA. Never share the private .key that was created with it, though; that one is secret.
I lost the private key for my CSR - can I recover it?
No. The private key isn't inside the CSR and can't be recovered from it or from the issued certificate. Generate a new key pair and a new CSR, then re-issue the certificate.
Do I still need a CSR with Let's Encrypt?
Technically yes, but Certbot/acme.sh generate and submit it automatically, so you normally never see or handle the .csr file when using ACME-based free certificates.

References

1RFC 2986 - PKCS #10: Certification Request Syntaxdatatracker.ietf.org
2Microsoft - Request an internet server certificate (IIS)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.PARTPartial Download File
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.PEMPEM - Base64-encoded certificate / key container (X.509, PKCS)
.P7MPKCS#7 / S/MIME Message (digitally signed or encrypted)
.CERSecurity certificate (X.509 .cer)
.REQCertificate Signing Request (CSR) - .req
.CRTSecurity certificate (X.509 .crt)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z