Created
November 13, 2017 23:21
-
-
Save jcjones/b60ff3dc0465a24bd3c475c470f6e0ea to your computer and use it in GitHub Desktop.
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 [ ! -x $(which ocspchecker) ] ; then | |
go install github.com/jcjones/ocspchecker | |
fi | |
for id in $@; do | |
echo "Downloading crt.sh ID ${id}" | |
curl --silent https://crt.sh/?d=${id} > /tmp/${id}.pem || exit 1 | |
ocspchecker -pem /tmp/${id}.pem | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will only work if $GOPATH/src/github.com/jcjones/ocspchecker is already available. Did you mean to do a "go get" instead of a "go install"?