Commit 06a47deb authored by putro's avatar putro

fix for listing secret keys a new nym

parent 0a84b3b7
......@@ -495,7 +495,7 @@ def encrypt(message, recipient, sign=False, passphrase=False, test=False):
return encrypted_ascii_data
def createKey(comment="", key_type="RSA", key_length=1024):
def createKey(comment="", key_type="RSA", key_length=2048):
""" Create a gpg key """
global last_message
email = raw_input("insert email address for the key: ")
......@@ -517,7 +517,7 @@ def listSecKeys():
counter = 0
for k in seckeys:
counter += 1
print "%s - %s - %s" % (counter, k["uids"][1], k["keyid"])
print "%s - %s - %s" % (counter, k["uids"][0], k["keyid"])
return seckeys
......@@ -633,6 +633,7 @@ def deleteKey(fp):
def createNym():
""" Create or update a nym """
print "\nFor new nym, add them to the config file first...\n"
askNym()
fp = selectSecKey(options['nym-email'])
pk = exportPubKey(fp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment