Last active
October 9, 2018 14:46
-
-
Save jeroneemou/0f60357dc5f6c2afd64445a03c9bc852 to your computer and use it in GitHub Desktop.
Check details about website certificate from console
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/bash | |
if [ "$1" == "-h" ] || [ -z "$1" ]; then | |
echo "Usage: ./check_cert.sh domain.name" | |
exit 0 | |
fi | |
echo "DONE" | openssl s_client -showcerts -connect $1:443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment