UNDOCUMENTED and .com.tr domain registration is waiting for you at a price of 140 TL...
Register Now

Knowledge Base

How to Generate CSR Code?

How to Generate CSR Code?

CSR (Certificate Signing Request) is a code that you need to create on your server when obtaining an SSL certificate. It contains details such as domain name, company name, country, city, and a public key . The certificate authority (CA) uses this file to create your SSL certificate.


How to Generate CSR Code?

Method 1: Generating CSR with OpenSSL on Linux Server

  1. Connect to the server via SSH:

ssh root@sunucunuz.com
  1. Run command to generate CSR and private key:

openssl req -new -newkey rsa:2048 -nodes -keyout alanadiniz.com.key -out alanadiniz.com.csr
  1. When you run the command, you will be asked to enter the following information:

    • Country Name (2 letters): TR

    • State or Province Name: Istanbul

    • Locality Name: Kadıköy

    • Organization Name: Company Name Inc.

    • Organizational Unit Name: IT Department

    • Common Name (your domain name): www.yourdomain.com

    • Email Address: admin@yourdomain.com

⚠️ In the "Common Name" section, enter the full domain name where SSL will be installed. wwwIf available, www.alanadiniz.comit should be written.

  1. The resulting files are:

    • alanadiniz.com.key→ This is your private key. Keep it safe.

    • alanadiniz.com.csr→ This file contains the CSR code to be given to the certificate authority.


Method 2: Generating CSR via Plesk

  1. Log in to the Plesk panel.

  2. Click on Websites and Domains from the left menu .

  3. Select your domain name > click “SSL/TLS Certificates”.

  4. Click “Add certificate” or “Add new SSL Certificate”.

  5. Fill in the requested information and press the “Generate CSR” button.

  6. Copy the CSR code and send it to your SSL provider.


Sample CSR Output (Beginning and End)

-----BEGIN CERTIFICATE REQUEST-----
MIIC4jCCAcqgAwIBAgIBADANBgkqhkiG9w0BAQUFADCB...
...rest of the CSR...
-----END CERTIFICATE REQUEST-----

You must pass this code as is, with its beginning and end, to your SSL provider.


Things to Consider

  • Do not share the private key ( .key) file with anyone.

  • Provide the CSR file only to the certificate authority (CA).

  • During SSL setup, .crtthe and .ca-bundlefiles will be passed back to you.

 

Sipariş / Order / Заказ / طلب

Can't find the information you're looking for?

You have examined the knowledge base in detail, but if you cannot find the information you need,

Create a Support Ticket
Did you find it useful?

1 times viewed | 0 people fount it helpful

0 850 259 1 200 908502591200