diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:14:06 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:14:06 +0000 |
commit | eee068778cb28ecf3c14e1bf843a95547d72c42d (patch) | |
tree | 0e07b30ddc5ea579d682d5dbe57998200d1c9ab7 /tests/openpgp/signdemokey | |
parent | Initial commit. (diff) | |
download | gnupg2-38842ba1ceb680893dc1c273c3dea94fb903e2d7.tar.xz gnupg2-38842ba1ceb680893dc1c273c3dea94fb903e2d7.zip |
Adding upstream version 2.2.40.upstream/2.2.40
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/openpgp/signdemokey')
-rwxr-xr-x | tests/openpgp/signdemokey | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/openpgp/signdemokey b/tests/openpgp/signdemokey new file mode 100755 index 0000000..13c5784 --- /dev/null +++ b/tests/openpgp/signdemokey @@ -0,0 +1,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 + |