Ribbon Icon Celebrating 27 Years – Announcing the new GeoTrust Horizon® platform. Learn More
Home Icon > Resources > Articles > Knowledgebase > SSL Certificates > CSR Generation > How to Generate a Certificate Signing Request (CSR)

How to Generate a Certificate Signing Request (CSR)

A certificate signing request (CSR) is a crucial first step in obtaining an SSL/TLS certificate for your website or server. This encoded file contains your public key and identifying information about your organization, which you’ll submit to a certification authority (CA) to receive your digital certificate.

A screenshot example that demonstrates what a certificate signing request (CSR) looks like
Image caption: An example CSR.

Platform-Specific CSR Generation Instructions

The process for generating a CSR varies depending on your server environment, operating system, and certificate management tools. Different platforms use different commands, interfaces, and certificate storage mechanisms.

Below, you’ll find detailed guides for generating CSRs across various environments, including web servers, control panels, cloud platforms, and operating systems. Each guide provides step-by-step instructions tailored to that specific platform’s requirements and best practices.

Key Things to Know About Generating a CSR

Your CSR Is Linked to a Private Key

When you generate a CSR, you’re creating two components:

  1. the CSR itself, which you’ll send to your CA, and
  2. a private key, which remains securely on your server.

The CA uses the information in your CSR to verify your identity and issue a certificate that corresponds to your private key. This certificate key pair enables encrypted communication channel between your server and clients.

Generating the CSR on the server where you’ll install the certificate keeps your private key secure; it should never leave that environment.

You Must Carefully Choose the Right Key Size and Type

The security of your SSL/TLS certificate depends heavily on the private key settings chosen during CSR generation. Using adequate key strength ensures your encrypted connections resist modern computational attacks. Recommended key sizes are:

  • RSA: 2048 bits or larger
  • ECC: 256 bits or larger (aka. ECDSA, p-256)

What Information Does a CSR Contain?

Your CSR includes several pieces of identifying information:

  • Common Name (CN): The fully qualified domain name (FQDN) you want to secure, such as www.example.com
  • Organization (O): Your company’s legal name
  • Organizational Unit (OU): Your department, such as IT or Web Administration (this field is no longer included in the issued certificate)
  • City/Locality (L): The city where your organization is located
  • State/Province (ST): Your state or province
  • Country (C): Your two-letter country code
  • Email Address: A contact email for certificate matters

The accuracy of this information (especially the common name field) matters significantly, as CAs verify these details before issuing certificates. Any discrepancies can delay or prevent certificate issuance.