Cheat Sheet - OpenSSL

Cheat Sheet - OpenSSL

s_client

Verify TLS communication

openssl s_client -connect host:port

x509

Decode certificate from STDIN

echo "...base64encoded..." | base64 -d | openssl x509 -text -noout 

Decode certificate from file

openssl x509 -in server.crt -text -noout

Verify

Display certificate chain

openssl verify -CAfile server.crt -show_chain client.crt