Skip to content

Instantly share code, notes, and snippets.

@anwinged
Last active February 11, 2019 11:34
Show Gist options
  • Save anwinged/3889503c074645db8e1cee1d9f6c21e4 to your computer and use it in GitHub Desktop.
Save anwinged/3889503c074645db8e1cee1d9f6c21e4 to your computer and use it in GitHub Desktop.
Show host x509 certificate information
#!/usr/bin/env bash
set -eu
HOST=$1
echo | \
openssl s_client -servername $HOST -connect $HOST:443 2>/dev/null | \
openssl x509 -text -noout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment