Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/4e4acbcf074ba054b813af72f4419afa to your computer and use it in GitHub Desktop.
Save dacr/4e4acbcf074ba054b813af72f4419afa to your computer and use it in GitHub Desktop.
ssl cheat sheet / published by https://github.com/dacr/code-examples-manager #56f9bb34-87e3-4d13-ba10-8cf7d21456b6/e53857c5cd1cd5c70750c645c51675f277ff3ecd

ssl cheat sheet

Reference SSL Configuration

openssl

openssl x509 -in key.pem -text
openssl rsa -in ~/.ssh/id_rsa -text

get server ssl cert infos

openssl s_client -showcerts -connect www.example.com:443

list locate certificates

awk -v cmd='openssl x509 -noout -subject' '
    /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment