2

My encryption subkey (but not my signing or other subkeys) expired. How do I generate and add a new encryption subkey using gpg?

  • Are you sure you want to generate a new subkey and not extend the key's expiration date? – Michael Altfield Jul 2 at 15:26
2
gpg --edit-key <KEY_ID> addkey

Choose

   (5) Elgamal (encrypt only)
   (6) RSA (encrypt only)

source: gpg manpage

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.