OpenSSL Commands

View CSR contents:

openssl req -text -noout -in “CSR File”

Check private key:

openssl rsa -in domainname.com.key -check

View info on PFX:

openssl pkcs12 -in domainname.com.pfx -info

Create new private key and csr:

openssl req -new -newkey RSA:2048 -nodes -keyout domainname.com.key -out domainname.com.csr

Encrypt the private key with password:

openssl rsa -aes256 -in domainname.com.key -out domainname.com.enc.key

Create PFX with non encrypted private key, SSL certificate and certificate bundle (root + intermediate SSL)

openssl pkcs12 -export -out domainname.com.pfx -inkey domainname.com.key -in domainname.com.crt -certfile bundle.crt

OpenSSL Commands - 18 May 2025 - Christopher