[Tickets #15043] Re: Public Key Expiration Date is not calculated correctly

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Nov 12 16:00:07 UTC 2020


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/15043
------------------------------------------------------------------------------
  Ticket             | 15043
  Updated By         | horde at immerda.ch
  Summary            | Public Key Expiration Date is not calculated correctly
  Queue              | IMP
  Version            | 6.2.27
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


horde at immerda.ch (2020-11-12 16:00) wrote:

The reason this happens, is as followed:

You are parsing output of  `gpg --list-packets` and calculate the  
wrong dates with each other.

gpg returns "hashed subpkt 9 len 4 (key expires after 7y2d0h23m)"

2017-10-02 + 7y2d0h23m is October 4th 2024

The error is on this line  
https://github.com/horde/Crypt/blob/master/lib/Horde/Crypt/Pgp/Backend/Binary.php#L326

Somehow the wrong date is chose from parsing the packets:

https://github.com/horde/Crypt/blob/master/lib/Horde/Crypt/Pgp/Backend/Binary.php#L182-L352






More information about the bugs mailing list