Close Menu
DPC Virtual Tips
    Read More

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Slurm Node Is DRAINED: How to Find the Exact Reason

    August 10, 2026

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    August 9, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Tuesday, August 11
    DPC Virtual Tips
    • Home
    • Operating Systems
    • PowerFlex
    • HPC
    • Virtualization
    • About the Author
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Creating a Certificate Request with OpenSSL
    Operating Systems

    Creating a Certificate Request with OpenSSL

    DaniloBy DaniloJanuary 17, 2023Updated:August 4, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    OpenSSL certificate request
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Creating a Certificate Request with OpenSSL is a practical guide that explains how to generate a CSR (Certificate Signing Request) and private key using OpenSSL. In this lab environment, we will use OpenSSL on Windows to create the required files before submitting the certificate request to a Certificate Authority.

    OpenSSL is a widely used tool for working with digital certificates, allowing administrators to generate private keys, certificate requests, and manage different cryptographic operations. The CSR file created during this process contains the certificate information that will be used by the CA to issue the final certificate.

    In this article, we will demonstrate step-by-step how to prepare the certificate details file, generate the CSR and private key files, and understand the main parameters used during the OpenSSL certificate request creation process.

    In this lab, we are using OpenSSL on Windows. You can download the OpenSSL on the below link:

    • https://slproweb.com/products/Win32OpenSSL.html

    Creating a text file with your Certificate Details

    The first step here is creating the text file with certificate details. You can use Notepad++ or your preferred text editor to complete this step.

    Create a new file and put the below information:

    [ req ]
    default_bits = 2048
    distinguished_name = req_distinguished_name
    req_extensions = req_ext
    prompt = no
    
    [ req_distinguished_name ]
    countryName = BR
    stateOrProvinceName = SP
    localityName = SP
    organizationName = DPC Virtual Tips
    organizationalUnitName = IT
    commonName = nsx.lab.local
    
    [ req_ext ]
    subjectAltName = @alt_names
    
    [alt_names]
    DNS.1 = nsx.lab.local
    DNS.2 = nsx-01.lab.local
    DNS.3 = nsx-02.lab.local
    DNS.4 = nsx-03.lab.local
    IP.1 = 10.0.0.1
    IP.2 = 10.0.0.2
    IP.3 = 10.0.0.3
    IP.4 = 10.0.0.4

    Choose a file name and save that (in this example, we saved the file with “nsx-cert.txt”):

    Generating the Certificate Signing Request and the Certificate Private Key

    At this point, we need to generate the certificate request and the private key. We will do it with OpenSSL.

    Firstly, open the Windows CMD and navigate to the openssl.exe directory:

    cd C:\Program Files (x86)\GnuWin32\bin

    Run the command below to generate the CSR file and the KEY file:

    openssl.exe req -out C:\temp\nsx-cert.csr -newkey rsa:2048 -nodes -keyout C:\temp\nsx-cert.key -config C:\temp\nsx-cert.txt -sha256

    Where:

    -out C:\temp\nsx-cert.csr = The file that will be created containing the Certificate Request

    -keyout C:\temp\nsx-cert.key = The file that contains the private key for this Certificate

    -config C:\temp\nsx-cert.txt = The file that contains all details about the Certificate (this file has been created by us before)

    On the C:\temp directory, we can see all files:

    At this point, the Certificate Request is done. The next step is to send the CSR file to the CA (Certificate Authority) to sign this certificate and create the final certificate for us.

    The CSR file content is:

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleCreating an Internal Certificate Authority
    Next Article Requesting a Certificate for an Internal CA
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Linux Process Resource Usage: How to Find Heavy Processes

    August 6, 2026

    Linux ss, lsof, and fuser Commands: A Practical Guide

    August 4, 2026

    Comments are closed.

    Search
    Categories
    • HPC (10)
    • Operating Systems (83)
    • PowerFlex (22)
    • Virtualization (129)
    Read More
    Operating Systems

    How to Investigate TCP Retransmissions on Linux

    By DaniloAugust 11, 20260
    HPC

    Slurm Node Is DRAINED: How to Find the Exact Reason

    By DaniloAugust 10, 20260
    HPC

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    By DaniloAugust 9, 20260
    Operating Systems

    Linux Process Resource Usage: How to Find Heavy Processes

    By DaniloAugust 6, 20260
    HPC

    Lustre Filesystem Commands: A Practical Admin Guide

    By DaniloAugust 5, 20260
    Latest Posts

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Slurm Node Is DRAINED: How to Find the Exact Reason

    August 10, 2026

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    August 9, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy