Skip to content

Instantly share code, notes, and snippets.

@jeroneemou
Last active October 9, 2018 14:46
Show Gist options
  • Save jeroneemou/0f60357dc5f6c2afd64445a03c9bc852 to your computer and use it in GitHub Desktop.
Save jeroneemou/0f60357dc5f6c2afd64445a03c9bc852 to your computer and use it in GitHub Desktop.
Check details about website certificate from console
#!/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