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
Expiry date of GPG key is reported wrong #6599
Comments
Could you provide public key so we could reproduce this? |
I found a signature of a subkey that should be valid until 2022 but maybe we should have ignored them as the primary key that sign expire before.
The expire time is detected here but should be based on primary at first glance. |
You seems to have re-sign your key the Sat Apr 06 2019 18:36:32 GMT+0200 for nearly 2.8 years so the date we display should be good. Maybe you re-sign this key on another computer and didn't re-import it re-sign in your other ? Based on :
|
I don't know why gpg totally ignore some packets and if we should do the same.
|
On 2019-04-06 I added the email address I have cleaned the key now (gpg --edit-key, then clean) and now every
I don't now much about GPG, but it seems that New public key, after clean: tastytea.asc.txt |
@tastytea you are right https://tools.ietf.org/html/rfc4880#section-5.2.3.6 I will fix the mistake. |
I will add test to the PR. You may need to re-import the key as the expiration time is calculated at import. |
[x]
):Description
I added a GPG key that expires 2020-04-05.
Gitea claims that it is valid until 2022-01-23.
Screenshots
The text was updated successfully, but these errors were encountered: