Skip to content

Instantly share code, notes, and snippets.

@usmansaleem
Created March 7, 2023 02:12
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 usmansaleem/6660fafb7f9c2869448d9b9322a9e51d to your computer and use it in GitHub Desktop.
Save usmansaleem/6660fafb7f9c2869448d9b9322a9e51d to your computer and use it in GitHub Desktop.
Check SSL certificate or sha256 fingerprint of a host
openssl s_client -connect localhost:8200 </dev/null 2>/dev/null | openssl x509 -inform pem -noout -fingerprint

Or

openssl s_client -connect localhost:8200 </dev/null 2>/dev/null | openssl x509 -inform pem -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment