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