From 236cc6d2ede3fb9f6b55695115d4246a69489e02 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Sep 2012 11:20:36 -0400 Subject: [PATCH] test:key: add a subkey to the testing key. I updated `key.conf` to generate the appropriate key type, but rerunning `key.sh` would create a whole new key. I didn't want to rewrite the old tests to use a new primary key fingerprint, so I added a subkey to the old pgp-mime-test key by hand: $ gpg --expert --edit-key 4332B6E3 ... gpg> addkey Please select what kind of key you want: ... (8) RSA (set your own capabilities) Your selection? 8 ... Current allowed actions: Sign Encrypt ... (Q) Finished Your selection? Q What keysize do you want? (2048) Requested keysize is 2048 bits ... Key is valid for? (0) 0 Is this correct? (y/N) y Really create? (y/N) y gpg> save $ gpg --export --armor -o test/key.txt 4332B6E3 --- test/key.conf | 3 +++ test/key.txt | 60 +++++++++++++++++++++++++++------------------------ 2 files changed, 35 insertions(+), 28 deletions(-) diff --git a/test/key.conf b/test/key.conf index 57d94c6..8cc1bb6 100644 --- a/test/key.conf +++ b/test/key.conf @@ -6,6 +6,9 @@ Name-Real: pgp-mime-test Name-Comment: http://blog.tremily.us/posts/pgp-mime/ Name-Email: pgp-mime@invalid.com Expire-Date: 0 +Subkey-Type: default +Subkey-Length: 2048 +Subkey-Usage: encrypt sign %pubring key.pub %secring key.sec %commit diff --git a/test/key.txt b/test/key.txt index c75b62e..3547798 100644 --- a/test/key.txt +++ b/test/key.txt @@ -1,33 +1,37 @@ ------BEGIN PGP PRIVATE KEY BLOCK----- -Version: GnuPG v2.0.17 (GNU/Linux) +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.19 (GNU/Linux) -lQOYBE9qIUQBCACquHmPRH+pMguMOx6P7wHpD/CfVNwHZ/lmdDA3COxnEtT3Lf1+ +mQENBE9qIUQBCACquHmPRH+pMguMOx6P7wHpD/CfVNwHZ/lmdDA3COxnEtT3Lf1+ 9yz9h8+v+HHOYu0kIdwiYLOS1b5kNXlCMidT7POh8wLmrbvI/kSatWhAG/uR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