Common OpenSSL Commands
General OpenSSL Commands
Generate a new private key and Certificate Signing Request
Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate for more info)
Generate a certificate signing request (CSR) for an existing private key
Generate a certificate signing request based on an existing certificate
Remove a passphrase from a private key
Checking Using OpenSSL
Check a Certificate Signing Request (CSR)
Check a private key
Check a certificate
Check a PKCS#12 file (.pfx or .p12)
List the certificates stored in a PKCS12 keystore with Java Keytool
Debugging Using OpenSSL
Check an MD5 hash of the public key to ensure that it matches with what is in a CSR or private key
Check an SSL connection. All the certificates (including Intermediates) should be displayed
Converting Using OpenSSL
Convert a DER file (.crt .cer .der) to PEM
Convert a PEM file to DER
Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM
Convert a PEM certificate file and a private key to PKCS#12 (.pfx .p12)
Reference
Last updated
Was this helpful?