Certificate plays a critical role in securing communications. An IT admin, an application owner, or a developer, can’t work without a certificate. You can’t really imagine how many types of certificates there are. There are user certificates associated with computer accounts to prove the identity. To take a secure RDP (Remote Desktop Connection), a connection RDP certificate is a must. To access a website over HTTPS, SSL/TLS certificate is required. To get the certificate from a CA (Certificate Authority), you should create a CSR (Certificate Signing Request) and submit the CSR to CA. In this article, we are going to show a detailed step-by-step procedure to create a custom CSR (Certificate Signing Request) on a Windows Server.
A CSR is the first step to getting a new certificate. As the name says, CSR is the standard request format that most Certificate Authorities accept to issue the certificate. In the next section, we will show how to create a custom CSR on Windows Server.
A Certificate Authority will use CSR to issue the certificate. So you should add the below information to your CSR while creating it.
Common Name (CN) | The Fully Qualified Domain Name (FQDN). e.g. *.example.com, www.example.com, and mail.example.com. |
Organization (O) | The legal name of your organization. Do not abbreviate and include any suffixes, such as Inc., Corp., or LLC. |
Organizational Unit (OU) | The division of your organization handling the certificate. |
City/Locality (L) | The city where your organization is located. This shouldn’t be abbreviated. |
State/County/Region (S) | The state/region where your organization is located. This shouldn’t be abbreviated. |
Country (C) | The two-letter code for the country where your organization is located. |
Email Address | An email address used to contact your organization. |
List of details required to generate a CSR
The public key: Certificate Authority includes it during the creation of the certificate.
Information about the key type and length. The most common key size is RSA 2048, but some CAs, including GlobalSign, support larger key sizes (e.g. RSA 4096+) or ECC keys.
Hit Win + R to open the Run utilityType mmc and click on ‘OK’.
Go to File > Add/Remove Snap-in..
Select the snap-in in which you want to create the certificate. For demonstration, we are choosing Compute account.Click Next.
Select a local computer as you are going to create CSR on the same computer.Click Finish.
Access your MMC snap-in> right-click the Personal folder.Select All Tasks > Advanced Operations > Create Custom Request.
The CSR generation wizard will open > Click Next.
Select the option to Proceed without enrollment policy > Click Next
From the Details drop-down menu > Click Properties.
Access the Subject tab > in the Subject name: select the types from the dropdown list and add the values required for your CSR.
Example:
CN = <domain.corp.com>
DNS = <domain>
Click the Private Key tab > click the drop-down for Key options > select Key size: 2048 and check the option to Make private key exportable > Click OK.
Select Base 64 and Click Next > Click Browse.
A CSR file is a long string of characters encoded in base-64 formats. Typically it can be read using any standard text editor. Here you can see how does a CSR look like. Whenever you copy the context, you should include:
— –BEGIN NEW CERTIFICATE REQUEST — — & — –END NEW CERTIFICATE REQUEST — –
CSR file content sample is for reference
You can use CSR to generate any machine certificates, such as RDP, Ops Manager, and SSL. You may just need to choose the appropriate certificate template while submitting the CSR to the Certificate Authority.
Sometimes, you may find yourselves in a position to validate the CSR. There are many ways to decode a CSR. But, for beginners, using online tools are the best way to decode CSRs. We want to introduce one such wonderful tool to you.
Namecheap: https://decoder.link/resultt
submitting input in SSL & CSR decoder to decode
Copy and paste the content of your CSR here in the box and click Decode. It not just decodes the CSR but also reports any errors in it.
Thanks for reading this article. Here you see more such interesting articles:
You may also like these articles:
Arun KL is a cybersecurity professional with 15+ years of experience in IT infrastructure, cloud security, vulnerability management, Penetration Testing, security operations, and incident response. He is adept at designing and implementing robust security solutions to safeguard systems and data. Arun holds multiple industry certifications including CCNA, CCNA Security, RHCE, CEH, and AWS Security.
“Knowledge Arsenal: Empowering Your Security Journey through Continuous Learning”
"Cybersecurity All-in-One For Dummies" offers a comprehensive guide to securing personal and business digital assets from cyber threats, with actionable insights from industry experts.
BurpGPT is a cutting-edge Burp Suite extension that harnesses the power of OpenAI's language models to revolutionize web application security testing. With customizable prompts and advanced AI capabilities, BurpGPT enables security professionals to uncover bespoke vulnerabilities, streamline assessments, and stay ahead of evolving threats.
PentestGPT, developed by Gelei Deng and team, revolutionizes penetration testing by harnessing AI power. Leveraging OpenAI's GPT-4, it automates and streamlines the process, making it efficient and accessible. With advanced features and interactive guidance, PentestGPT empowers testers to identify vulnerabilities effectively, representing a significant leap in cybersecurity.
Tenable BurpGPT is a powerful Burp Suite extension that leverages OpenAI's advanced language models to analyze HTTP traffic and identify potential security risks. By automating vulnerability detection and providing AI-generated insights, BurpGPT dramatically reduces manual testing efforts for security researchers, developers, and pentesters.
Microsoft Security Copilot is a revolutionary AI-powered security solution that empowers cybersecurity professionals to identify and address potential breaches effectively. By harnessing advanced technologies like OpenAI's GPT-4 and Microsoft's extensive threat intelligence, Security Copilot streamlines threat detection and response, enabling defenders to operate at machine speed and scale.