Create A Certificate Signing Requesting (CSR ) Using OpenSSL In PowerShell

In this Snip, we will create a Certificate Signing Request (CSR) in the PowerShell Integrated Scripting Environment (ISE). Once done you will have everything you need to have a Certificate Signing Authority validate a new certificate for you.

We will create a private RSA key using the OpenSSL genrsa command, then use our newly created RSA key to generate the CSR using the OpenSSL req command. We will Create a private key and set the Subject line for our certificate, including information like Organization name, common name, and Country code. We will validate that the CSR using the OpenSSL req command.

Prerequisites include: OpenSSL installed and configured