Created
February 8, 2016 04:07
-
-
Save pmolchanov/0c41d285ab1cd4b29d38 to your computer and use it in GitHub Desktop.
Get SSL certificate info
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
#!/usr/bin/env bash | |
echo -n "Enter the host name and press [ENTER]: " | |
read host | |
echo | openssl s_client -connect $host:443 2>/dev/null | openssl x509 -noout -text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment