Created
January 19, 2018 19:06
-
-
Save beryllium/83ec2007337333977990068e15673456 to your computer and use it in GitHub Desktop.
showcerts
This file contains 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
#!/bin/sh | |
# Grab the certificate and parse out some info | |
# Usage: | |
# showcerts whateverthing.com | |
echo | openssl s_client -showcerts -connect "${1}:443" -servername "$1" | openssl x509 -text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment