On Mittwoch, 1. April 2020 20:16:30 CEST Matthias Apitz wrote: > El día Mittwoch, April 01, 2020 a las 08:06:01 +0200, Ingo Klöcker escribió: > > On Mittwoch, 1. April 2020 19:39:24 CEST Matthias Apitz wrote: > > > El día Mittwoch, April 01, 2020 a las 06:59:17 +0200, Ingo Klöcker escribió: > > > > On Mittwoch, 1. April 2020 17:30:29 CEST Matthias Apitz wrote: > > > > > I encounter in my server the following situation: I can decrypt > > > > > files > > > > > > > but not encrypting any file: > > Maybe the key is expired or not usable for encryption for some other > > reason. gpg will happily use an expired key for decryption (of old > > encrypted data), but it won't use an expired key for encryption. > > > > What does > > gpg --list-public-keys --with-colons [email protected] > > say? > > $ gpg --list-public-keys --with-colons [email protected] > tru::1:1585750650:0:3:1:5 > pub:e:2048:1:7BA6AC955EAA2665:1520759851:1583831851::u:::sc::::::: > fpr:::::::::8BCE0232807D4CCB4F8800D17BA6AC955EAA2665: > uid:e::::1520759851::DD2F57BCBE052BF39F1E41416DB8DF884B56DB02::guru@unixarea > .de: sub:e:2048:1:2802AB9D46B97090:1520759851::::::e:::::: > fpr:::::::::8D06C9C9460222C8A26181142802AB9D46B97090: > sub:e:2048:1:4FAD759204AFE5CB:1585762137::::::e:::::: > fpr:::::::::D9BF745D512FEA9BBEF8923A4FAD759204AFE5CB:
As I assumed, the keys are expired, as can be seen by the :e: after pub/uid/ sub. If you do gpg --list-public-keys [email protected] you should see when the keys expired. (It's also listed above, but the unix timestamp 1583831851 isn't easy to read for humans.) Regards, Ingo _______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
