Skip to content

Commit

Permalink
Update APK signature script
Browse files Browse the repository at this point in the history
  • Loading branch information
mfonville committed Dec 13, 2016
1 parent ef7c10e commit 0933e4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions show_apksignature.sh
Expand Up @@ -25,7 +25,8 @@ checktools base64 coreutils unzip
for argument in "$@"; do
file="$(readlink -f "$argument")"
if [ -f "$file" ]; then
echo "base64 signature of $file:"
unzip -p "$file" "META-INF/CERT.RSA" | base64 -
echo "signature of $file:"
unzip -p "$file" "META-INF/CERT.RSA" | openssl pkcs7 -inform DER -print_certs | tail -n +4 | head -n -2 | tr -d '\n'
echo ""
fi
done

1 comment on commit 0933e4c

@KreAch3R
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.