Alexandre Lision | 3d4143a | 2015-06-10 14:27:49 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | set -e | ||||
3 | set -o pipefail | ||||
4 | if [ "$#" -ne 2 ]; then | ||||
5 | echo "Usage: $0 update_archive private_key" | ||||
6 | exit 1 | ||||
7 | fi | ||||
8 | openssl=/usr/bin/openssl | ||||
9 | $openssl dgst -sha1 -binary < "$1" | $openssl dgst -dss1 -sign "$2" | base64 --wrap=0 | ||||
10 |