Skip to content

Instantly share code, notes, and snippets.

@jcjones
Created November 13, 2017 23:21
Show Gist options
  • Save jcjones/b60ff3dc0465a24bd3c475c470f6e0ea to your computer and use it in GitHub Desktop.
Save jcjones/b60ff3dc0465a24bd3c475c470f6e0ea to your computer and use it in GitHub Desktop.
#!/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
@acohn
Copy link

acohn commented Nov 14, 2017

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment