]>
src.bluestatic.org Git - macgdbp.git/blob - dev/sign.sh
5 if [[ 2 -ne $# ]]; then
6 echo "Usage: $0 /path/to/archive.zip /path/to/keyring"
10 THIS_DIR
=$(dirname "$0")
15 DSA_SIG
=$(openssl dgst -sha1 -binary "$ARCHIVE" | openssl dgst -sha1 -sign "$KEYRING/dsa_priv.pem" | openssl enc -base64)
16 EDSA_SIG
=$("$THIS_DIR/signer-ed25519" -sign -key "$KEYRING/ed25519_priv.pem" -file "$ARCHIVE" | openssl enc -a -A)
19 echo "ED25519 = $EDSA_SIG"