Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laidbackware/54f90dd2fae7735f03a93cb2b1552db7 to your computer and use it in GitHub Desktop.
Save laidbackware/54f90dd2fae7735f03a93cb2b1552db7 to your computer and use it in GitHub Desktop.
Openssl cheats
# Get machine cert from $HOSTNAME on $PORT
echo -n | openssl s_client -connect ${HOSTNAME}:${PORT} 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment