📄 CSR (Certificate Signing Request) is a special file created to obtain an SSL certificate. It is sent to the certificate authority (CA) to verify the identity of your web server.
🔍 What Does a CSR Contain?
A CSR file contains the following information:
-
Domain name (Common Name) – For example:
www.examplesite.com -
Company name – If any
-
Country, city, province – Location details
-
Public Key – Used for encryption
-
Optional email address
This information is verified by the certificate authority, and then you are issued an SSL certificate.
⚙️ How Is a CSR Created?
A CSR is usually created from a control panel (cPanel, Plesk) or the command line. Example command (Linux/OpenSSL):
This command:
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr
-
example.key→ creates the private key file (must be kept secret) -
example.csr→ creates the certificate request (sent to the CA)
