Skip to content

Instantly share code, notes, and snippets.

@tanaka-geek
Created April 2, 2022 16:49
Show Gist options
  • Save tanaka-geek/6084eb9a18bee83fa84c05bfe516bd2b to your computer and use it in GitHub Desktop.
Save tanaka-geek/6084eb9a18bee83fa84c05bfe516bd2b to your computer and use it in GitHub Desktop.
cert-check
#!/bin/bash
if [ $# -eq 0 ]
then
echo "./this.sh https://example.com"
fi
curl --insecure -vvI $1 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment