From 59a5d1beae574c40bf6d37a688761cb235897f92 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Fri, 15 Feb 2013 19:41:53 +0000 Subject: Added GnuPG key generation program. * Added gpg-key-generator, which creates a directory under the current directory named "gpg-keys", creates a batch script for GnuPG to take as input to the "$ gpg --batch --gen-key " command. The gpg-key-generator will also somewhat handle cleanup of it's created files, appending instructions to the current GnuPG batch file, and creation of N keypairs at a time. It will call gpg itself, after creating the batch file, and create the keypairs. Lastly it prints a set of basic instructions for adding a new user account in order to avoid inadvertent mistakes to an actual user's GnuPG keyring. Do "$ gpg-key-generator --help" for more info. * First batch of test keypairs for unittesting leap_mx is included. The default keys were created with username: Louis Lingg , and the passphrase for each secret key is "leap" (no quotes). --- gpg-keys/gpg-batch-key-script | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 gpg-keys/gpg-batch-key-script (limited to 'gpg-keys/gpg-batch-key-script') diff --git a/gpg-keys/gpg-batch-key-script b/gpg-keys/gpg-batch-key-script new file mode 100644 index 0000000..7e48db0 --- /dev/null +++ b/gpg-keys/gpg-batch-key-script @@ -0,0 +1,45 @@ +%echo Generating keypair 001/003... +Key-Type: RSA +Key-Length: 4096 +Subkey-Type: RSA +Subkey-Length: 4096 +Name-Real: Louis Lingg +Name-Email: blackhole@leap.se +Name-Comment: Test Key 001/003 +Expire-Date: 2013-03-15 +Passphrase: leap +%pubring generated-2013-02-15_19-15-001.pub +%secring generated-2013-02-15_19-15-001.sec +%commit +%echo done. 001 keys out of 003 completed. + +%echo Generating keypair 002/003... +Key-Type: RSA +Key-Length: 4096 +Subkey-Type: RSA +Subkey-Length: 4096 +Name-Real: Louis Lingg +Name-Email: blackhole@leap.se +Name-Comment: Test Key 002/003 +Expire-Date: 2013-03-15 +Passphrase: leap +%pubring generated-2013-02-15_19-15-002.pub +%secring generated-2013-02-15_19-15-002.sec +%commit +%echo done. 002 keys out of 003 completed. + +%echo Generating keypair 003/003... +Key-Type: RSA +Key-Length: 4096 +Subkey-Type: RSA +Subkey-Length: 4096 +Name-Real: Louis Lingg +Name-Email: blackhole@leap.se +Name-Comment: Test Key 003/003 +Expire-Date: 2013-03-15 +Passphrase: leap +%pubring generated-2013-02-15_19-15-003.pub +%secring generated-2013-02-15_19-15-003.sec +%commit +%echo done. 003 keys out of 003 completed. + -- cgit v1.2.3