Skip to content

Instantly share code, notes, and snippets.

@chadyred
Created January 10, 2018 14:13
Show Gist options
  • Save chadyred/ab3c9030106c76573dd169a65c109787 to your computer and use it in GitHub Desktop.
Save chadyred/ab3c9030106c76573dd169a65c109787 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