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? Jul 2 '20 at 15:26
gpg --edit-key <KEY_ID> addkey


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

source: gpg manpage

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.