summaryrefslogtreecommitdiffstats
path: root/tests/openpgp/signdemokey
blob: 13c5784de7236d895da9ec93cf3687df2d1df461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if [ $# != 3 ]; then
    echo "Usage: signdemokey name user_id user_id_no"
    exit 1
fi
name="$1"
user_id="$2"
user_id_no="$3"

echo "abc" | ../g10/gpg --options ./gpg.conf --homedir $name \
		--sign-key --batch --yes --passphrase-fd 0 $user_id \
		$user_id_no sign save