Skip to content

Instantly share code, notes, and snippets.

@chadyred
Created January 10, 2018 14:13
Show Gist options
  • Save chadyred/a39d8cff0d6c251df3677e76cc090a20 to your computer and use it in GitHub Desktop.
Save chadyred/a39d8cff0d6c251df3677e76cc090a20 to your computer and use it in GitHub Desktop.
shasum-check-key
#!/bin/sh
# $1 : file with keys
# $2 : certificat (256 - 512)
# $3 : binary to check.
cat $1 | grep "`shasum -a $2 $3`"
if grep -q "`shasum -a $2 $3`" $1
then
echo "OK";
else
echo "NOT OK";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment