Skip to content

Instantly share code, notes, and snippets.

@karlkfi
Created July 10, 2025 17:51
Show Gist options
  • Save karlkfi/0659005c74f6507a098ac69c4076d640 to your computer and use it in GitHub Desktop.
Save karlkfi/0659005c74f6507a098ac69c4076d640 to your computer and use it in GitHub Desktop.
Read server TLS/SSL certificate as text
openssl x509 -in <(openssl s_client -connect $HOST:$PORT -prexit 2>/dev/null) -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment