How to generate a Private Key and Certificate Signing Request CSR

I keep needing to generate a Private Key and Certificate Signing Request CSR and forgetting the OpenSSL command.

What is OpenSSL for Windows

The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library.

Download OpenSSL for Windows

You need to download OpenSSL for Windows and then install it.

How to generate a Private Key and a Certificate Signing Request
// generate private key and CSR
openssl req -out www.abc.com.CSR.csr -new -newkey rsa:2048 -nodes -keyout www.abc.com.privateKey.key
How to extract a SSL Certificate from a website
// extract SSL certificate from website
openssl s_client -connect google.com:443
How to convert a Private Key into an RSA Private Key
// convert to RSA Private Key
openssl.exe rsa -in wildcard.example.com.privateKey.key -out wildcard.example.com.privateKey.rsa.key

For more OpenSSL commands



Comments

No comments yet.

Add Yours

  • Author Avatar

    YOU


Comment Arrow




About Author

Robert

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning hands down.