Skip to content

Instantly share code, notes, and snippets.

@serrodcal
Created October 2, 2024 07:34
Show Gist options
  • Save serrodcal/c2354ebbc4ab268ae63d25e1b6e28f36 to your computer and use it in GitHub Desktop.
Save serrodcal/c2354ebbc4ab268ae63d25e1b6e28f36 to your computer and use it in GitHub Desktop.

Show certificate from server:

openssl s_client -connect some_host:443

Download certificate from server:

keytool -printcert -rfc -sslserver <server>:443 > cert.pem

Show certificate info:

openssl x509 -in cert.pem -text -noout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment