2017-04-10 GPG Key Expiration

Today, I was greeted with the following as I was trying to save an crypted file from Emacs:

Error while encrypting with "gpg2":

gpg: XXX: übersprungen: unbrauchbarer öffentlicher Schlüssel
gpg: [stdin]: encryption failed: unbrauchbarer öffentlicher Schlüssel

What? Confirmation was easy. The key had expired.

$ gpg --list-keys XXX

Superuser to the rescue. Edit the key, change the expiration date, save, verify, and send to key servers.

$ gpg --edit-key XXX
gpg> expire
(follow prompts)
gpg> save
$ gpg --list-keys XXX
$ gpg --keyserver pgp.mit.edu --send-keys

Tags:

Comments


Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.