How to Create a CSR file in the IIS Windows Server?

How to Create a CSR file in the IIS Windows server

How to Create a CSR file in the IIS Windows Server?

CSR stands for Certificate Signing Request. CSR must be submitted while generating an SSL certificate from any certificate authority. Therefore, creating CSR is an important one to know for a web developer who is managing their website hosting and SSL Certificate. In this article, I will walk through the steps to create the CSR in IIS Windows Server.

Steps to create a CSR file

Step 1: Open the IIS Manager in the Windows server. In the left pane, open root navigation. You can double-click on the root item to open it.  Then you will find “Server Certificates” in the right pane.

IIS Manager - Server Certificates
IIS Manager – Server Certificates

Step 2: Open “Server Certificates” by double click on it. You can find the Actions pane on the right side. Click on “Create Certificate Request” in Actions Pane.

Create Certificate Request
Create Certificate Request

Step 3: New dialog will open where you need to fill in the following details.

  1. Common Name – This should be the root domain to which you are looking to apply SSL certificate. Example, if you are applying SSL certificate for the domain “”, you must give the same name in common name field. If you are applying SSL certificate for wildcard domain “*”, use full wildcard name like “*”.
  2. Organization – Your organization name or make it individual if you’re not belong to any organization.
  3. Organizational Unit – It will be the unit like IT, Banking, E-commerce etc where your organization belongs to.
  4. City/Locality
  5. State/Province
  6. Country/Region
Certificate Information Dialog
Certificate Information Dialog

Click on the Next button once filled above details.

Step 4: Provide the Cryptographic service provider and Bit length.

The cryptographic service provider will be “Microsoft RSA SChannel Cryptographic Provider” and the bit length can be 2048 or above. Higher the bit length more complex and secure the certificate, however, a higher number will slow down the website performance. Hence bit length 2048 would be ideal here.

Certificate Service Provider
Certificate Service Provider

Click on the Next button.

Step 5: Select the file location where you want to save the CSR file. CSR file will be generated in TXT format. Then click on the Finish button.

CSR File Location
CSR File Location

Step 6: That’s it. CSR file will be generated in a few seconds in the location you have given in the above step.  While you open the txt file, you will find the CSR in the following format,


You can copy the complete content and use it to apply a new SSL certificate new or SSL certificate renewal process.

Check the following article to complete the certificate request in IIS once you got the certificate files from Certificate Authority.

He is a product manager at a reputed software company and a freelance blog writer. He is experienced in different technologies, web securities, and web applications. He keeps learning and make himself up to date on the latest technologies, news, health, and fitness. This encouraged him to share his experiences by writing articles.

One thought on “How to Create a CSR file in the IIS Windows Server?

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top
%d bloggers like this: