Describe EliezerCroitoru/SSLtips here.

You can take a look also at:

Couple handy commands with openssl

To verify a certificate or a key

To check a private key:

openssl rsa -in privateKey.key -check

To check a certificate:

openssl x509 -in certificate.crt -text -noout

To check a PKCS#12 file:

openssl pkcs12 -info -in keyStore.p12

Converting commands

From .der .crt .cer to .pem

openssl x509 -inform der -in certificate.der -out certificate.pem

From .pem to .der

openssl x509 -outform der -in certificate.pem -out certificate.der

from PKCS#12 file (.pfx .p12) to PEM

openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes

Fetch X509v3 Subject Alternative Names and couple other properties

echo ""|openssl s_client -connect|openssl x509 -text -noout \
  -certopt no_subject,no_header,no_version,no_serial,no_signame,no_validity,no_subject,no_issuer,no_pubkey,no_sigdump,no_aux \
  | awk '/X509v3 Subject Alternative Name/','/X509v3 Basic Constraints/'

EliezerCroitoru/SSLtips (last edited 2016-06-13 18:36:35 by AlexRousskov)