mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
32 lines
589 B
Plaintext
32 lines
589 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
. $srcdir/defs.inc || exit 3
|
||
|
|
||
|
../../g10/gpg2 --quiet --batch --debug-quick-random --homedir . --gen-key <<EOF
|
||
|
Key-Type: DSA
|
||
|
Key-Length: 1024
|
||
|
Subkey-Type: ELG
|
||
|
Subkey-Length: 1024
|
||
|
Name-Real: Harry H.
|
||
|
Name-Comment: test key
|
||
|
Name-Email: hh@@ddorf.de
|
||
|
Expire-Date: 1
|
||
|
Passphrase: abc
|
||
|
%commit
|
||
|
EOF
|
||
|
|
||
|
if have_pubkey_algo "RSA"; then
|
||
|
../../g10/gpg2 --quiet --batch --debug-quick-random --homedir . --gen-key <<EOF
|
||
|
Key-Type: RSA
|
||
|
Key-Length: 1024
|
||
|
Key-Usage: sign,encrypt
|
||
|
Name-Real: Harry A.
|
||
|
Name-Comment: RSA test key
|
||
|
Name-Email: hh@@ddorf.de
|
||
|
Expire-Date: 2
|
||
|
Passphrase: abc
|
||
|
%commit
|
||
|
EOF
|
||
|
fi
|
||
|
|