VirtusLab / gpki

Git Public Key Infrastructure
1 stars 0 forks source link

Handle empty email and description while generating new key #17

Closed rifel123 closed 2 years ago

mzarnowski commented 2 years ago

Currently, we have the gpg key-spec as:

key_spec = f"""
           Key-Type:    RSA
           Key-Length:  3072
           Name-Real:   {name}
           Name-Email:  {email}
           Name-Comment:{description}
           Expire-Date: 6m
           Passphrase:  {getpass("New key passphrase: ")}
           """

Making the email and description truly optional means removing the Name-Email: {email} and Name-Comment: {description} lines respectively when those values are None

rifel123 commented 2 years ago

closed with #46