Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to extend the openPGP key pair's expire time? #238

Open
TommyLike opened this issue May 10, 2023 · 3 comments
Open

Is it possible to extend the openPGP key pair's expire time? #238

TommyLike opened this issue May 10, 2023 · 3 comments
Labels

Comments

@TommyLike
Copy link

Can we extend the key pair's expire time by using this library?

@dignifiedquire
Copy link
Member

I don't actually know how this works in general, do you have a link to some documentation how this would work?

@TommyLike
Copy link
Author

@dignifiedquire I guess it's supported by pgp command, theres is another script which utilize on the command:

https://github.com/fedora-copr/copr/blob/700a02ae7f8aed6f827a1b593ba1872c55e6b919/keygen/run/gpg-copr-prolong#L3

@hko-s
Copy link
Contributor

hko-s commented Jan 23, 2024

Expiration time (and other metadata) in OpenPGP is updated when the key holder issues new self-signatures. The new self-signatures replace the previous metadata.

See https://openpgp.dev/book/signing_components.html#adding-global-metadata-to-a-certificate for rough pointers.

Note that primary key and subkeys have subtly different mechanisms for how metadata is linked to them (and that the primary and each subkey can have independent expiration times).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants