diff options
author | Isis Lovecruft <isis@torproject.org> | 2013-02-15 19:41:53 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2013-02-15 19:41:53 +0000 |
commit | 59a5d1beae574c40bf6d37a688761cb235897f92 (patch) | |
tree | 04d869e1d8802972428391756a0e5c01adde864e /gpg-keys/gpg-batch-key-script | |
parent | 6488cc08c274d98658450fdc4e7cc41a1037cedc (diff) |
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 <blackhole@leap.se>,
and the passphrase for each secret key is "leap" (no quotes).
Diffstat (limited to 'gpg-keys/gpg-batch-key-script')
-rw-r--r-- | gpg-keys/gpg-batch-key-script | 45 |
1 files changed, 45 insertions, 0 deletions
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. + |