5

I would like to set the expiration date of a GPG subkey in the past, but gpg --edit-key does not allow me to. Is there any workaround to that?

Rationale: it is useful to set the expiration date of a subkey in the past in order to temporarily disable it. If you just revoke it, you lose the ability to enable it again later on.

6

A possible workaround is to use faketime to convince gnupg to not complain. See this other question:

$ faketime 'last week' gpg2 --edit-key ABCDEF12

and then use ordinary commands to expire the subkey tomorrow. That "tomorrow" will actually be six days ago.

1

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.