Skip to content

Incorrect determination of expire date #1749

Description

@bvfalcon

In case of removing expiration date for earlier published public key expire date is being determined incorect.
Example: for this public key method org.bouncycastle.openpgp.PGPPublicKey.getValidSeconds() must return 0, but returns 1141783116.
IMO, the reason is in this block which was added with this commit.

RFC 4880 has a notice about such situtation. For our case, there is no conflict and last signature (with "never expired") should be used.

Prepared demo project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions