Created
March 18, 2020 09:35
-
-
Save laidbackware/54f90dd2fae7735f03a93cb2b1552db7 to your computer and use it in GitHub Desktop.
Openssl cheats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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