From 863645179d65a5620a3ebf8d0f25e005d9a91410 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 21 Mar 2012 14:44:43 -0400 Subject: [PATCH] Add a test key (and creation scripts) so others can test decryption and verification. --- test/key.conf | 12 ++++++++++++ test/key.sh | 8 ++++++++ test/key.txt | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 test/key.conf create mode 100755 test/key.sh create mode 100644 test/key.txt diff --git a/test/key.conf b/test/key.conf new file mode 100644 index 0000000..57d94c6 --- /dev/null +++ b/test/key.conf @@ -0,0 +1,12 @@ +%echo generating an OpenPGP key for testing pgp-mime +Key-Type: default +Key-Length: 2048 +Key-Usage: encrypt sign +Name-Real: pgp-mime-test +Name-Comment: http://blog.tremily.us/posts/pgp-mime/ +Name-Email: pgp-mime@invalid.com +Expire-Date: 0 +%pubring key.pub +%secring key.sec +%commit +%echo done diff --git a/test/key.sh b/test/key.sh new file mode 100755 index 0000000..14849ae --- /dev/null +++ b/test/key.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# +# Copyright + +# generate an OpenPGP key for testing pgp-mime +gpg --batch --gen-key key.conf +gpg --no-default-keyring --secret-keyring ./key.sec --keyring ./key.pub --export-secret-keys --armor --output key.txt +rm -f key.sec key.pub diff --git a/test/key.txt b/test/key.txt new file mode 100644 index 0000000..c75b62e --- /dev/null +++ b/test/key.txt @@ -0,0 +1,33 @@ +-----BEGIN PGP PRIVATE KEY BLOCK----- +Version: GnuPG v2.0.17 (GNU/Linux) + +lQOYBE9qIUQBCACquHmPRH+pMguMOx6P7wHpD/CfVNwHZ/lmdDA3COxnEtT3Lf1+ +9yz9h8+v+HHOYu0kIdwiYLOS1b5kNXlCMidT7POh8wLmrbvI/kSatWhAG/uR24vT +aFbCAVCsnHn87jUsR0RFMa382YGa90tHhapWM4djS0MO2gEMgGK2tAT/h3mhCl04 +UTJHBMbA3UFO50Zbd7qiFKoydTq85GLe/3EzpzjqTn7haRY2B4gvL35TD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