aboutsummaryrefslogtreecommitdiffstats
path: root/checks/genkey1024.test
blob: 48d02da32c246c874c7f3261e4f018434809099a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

. $srcdir/defs.inc || exit 3

../g10/gpg --quiet --batch --quick-random --homedir . --gen-key <<EOF
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
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/gpg --quiet --batch --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