commit: 284073e411a75c75efb0426ea444fc8783462bb5
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 6 21:15:32 2015 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Jan 6 21:19:40 2015 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=284073e4
gkeysgen/actions.py: Add gen-key example
---
gkeys-gen/gkeygen/actions.py | 50 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 49 insertions(+), 1 deletion(-)
diff --git a/gkeys-gen/gkeygen/actions.py b/gkeys-gen/gkeygen/actions.py
index 740d954..8f8c81a 100644
--- a/gkeys-gen/gkeygen/actions.py
+++ b/gkeys-gen/gkeygen/actions.py
@@ -35,7 +35,55 @@ Action_Map = OrderedDict({
'options': ['spec', 'dest'],
'desc': '''Generate a gpg key using a spec file''',
'long_desc': '''Generate a gpg key using a spec file''',
- 'example': '''''',
+ 'example': '''$ gkey-gen gen-key
+
+ GPG key creator
+ Spec file..: glep-63-recommended
+ Homepage...: https://wiki.gentoo.org/wiki/GLEP:63
+
+Give your Full Name: Foo Barr
+Give your Email: [email protected]
+
+Review:
+ Full Name: Foo Barr
+ Email: [email protected]
+
+Continue?[y/n]: y
+
+* Creating gpg folder at /home/brian/gkeys-user/gpghome
+
+ * Creating gpg.conf file at /home/brian/gkeys-user/gpghome
+
+
+ ____________________
+ < Generating GPG key >
+ --------------------
+ \ ^__^
+ \ (oo)\_______
+ (__)\ )\/
+ ||----w |
+ || ||
+
+ * Give the password for the key. (Pick a strong one)
+ Please surf the internet, type on your keyboard, etc.
+ This helps the random number generator work effectively
+
+ Your new GLEP 63 based OpenPGP key has been created in
/home/brian/gkeys-user/gpghome
+
+
+ GPG key info:
+ Full Name: Foo Barr,
+ Email: [email protected],
+ Fingerprint: CF8F369903999538F79287497AD8F5FEF19A7A69
+
+
+ In order to use your new key, place the new gpghome to your ~/.gnupg
folder by running the following command:
+ mv /home/brian/gkeys-user/gpghome ~/.gnupg
+ Important: If you have another old key in ~/.gnupg please make sure you
backup it up first.
+
+ Please read the FAQ for post-generation steps that are available in:
+
https://wiki.gentoo.org/wiki/Project:Gentoo-keys/Generating_GLEP_63_based_OpenPGP_keys
+''',
},
'list-specs': {
'func': 'list_specs',