Forum: help-en

Monitor Forum | Start New Thread Start New Thread
RE: GnuPG - Creation and Expiration timestamp [ Reply ]
By: Bernhard Reiter on 2023-01-06 13:25
[forum:8741]
Two other solutions were mentioned in the mailinglist:

the option --with-colons

--full-timestrings (since 2.3.0)

https://lists.gnupg.org/pipermail/gnupg-users/2023-January/066380.html

RE: GnuPG - Creation and Expiration timestamp [ Reply ]
By: Christoph Klassen on 2023-01-03 10:26
[forum:8729]
You can use:
gpg -a --export <email-adress_or_id> | gpg --list-packets
to get the creation time as seconds since unix epoch (look for "created" in the output)
(https://stackoverflow.com/questions/48914338/how-to-get-expiration-date-from-a-gpg-key/48915209#48915209)

There is also a line with "key expires after" which shows the the whole duration from creation to expiration. You would have to calculate the exact expiration time but that should be no problem ;-)

RE: GnuPG - Creation and Expiration timestamp [ Reply ]
By: Bernhard Reiter on 2022-12-30 17:22
[forum:8718]
If you want the time in addition to the date, I guess that only of the debugging options may help, but I am not sure.

GnuPG - Creation and Expiration timestamp [ Reply ]
By: The Marsianer on 2022-12-30 16:15
[forum:8716]
How can I see the creation and expiration timestamp of my keys?
With --list-key I only see the date without time.