Generate CSR with OpenSSL

Generate CSR with OpenSSL

There are many ways to generate a CSR (Certificate Signing Request). In this post, I will show you step-by-step how to generate a CSR using OpenSSL.

Prerequisites

The Process

I will be using C:\SSL as my working directory.

I will be using Microsoft Windows with Windows Terminal and PowerShell.

In my example, I will name my private key private.key, and my CSR will be named csr. The command for me will look like openssl req -newkey rsa:2048 -keyout private.key -out csr

Technically, you can create a private key without a password using the option noenc.

Those are usually the bare minimum requirements for most SSL vendors. Some CAs (Certificate Authorities) may need more information. If they do, they usually list what else is required.

You have now generated a CSR. You can provide the CSR to your SSL vendor or CA.

Exit mobile version