sign_update 233 B

123456789
  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 -sha1 -sign "$2" | $openssl enc -base64