Skip to content

Instantly share code, notes, and snippets.

@andrepiske
Last active October 22, 2025 12:36
Show Gist options
  • Select an option

  • Save andrepiske/6eb68014fb76144f924e843937c706ea to your computer and use it in GitHub Desktop.

Select an option

Save andrepiske/6eb68014fb76144f924e843937c706ea to your computer and use it in GitHub Desktop.
SSL and certificates
# View PEM / .crt info
pbpaste | base64 -d | openssl x509 -inform PEM -text -noout
openssl x509 -in certificate.crt -text -noout
echo | openssl s_client -connect x.com:443 -servername x.com 2>/dev/null | openssl crl2pkcs7 -nocrl -certfile /dev/stdin | openssl pkcs7 -print_certs -text -noout
####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment