Checking expiration date automatically
ERIC LANDES
landes_eric at yahoo.fr
Mon Jan 14 19:59:40 CET 2008
> > Does there exist an option which would give the expiration date of a
> key, if such date exists ?
>
> See the file DETAILS in the doc/ directory. Something like:
>
> gpg --with-colons --fixed-list-mode --list-keys test at date | cut -d:
> -f7
>
> should do what you want.
>
> The number is the expiration date (if any) expressed as the number of
> seconds since 1/1/1970.
>
Thanks, it is a command I can rely on ! And it gives an epoch time which can be easily processed.
For those interested, I just added a -- grep -E "^pub:" -- to get only one date.
Eric LANDES
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20080114/2ddeacce/attachment.htm>
More information about the Gnupg-users
mailing list