Decrypting fails unless card status

Felix E. Klee felix.klee at inka.de
Tue Dec 15 04:13:05 CET 2020


Since some time, maybe since a minor system update, before decrypting
from my OpenPGP smart card, I always have to run:

    gpg --card-status

Otherwise, I get an error message:

    $ gpg --faked-system-time 20200101T000000 -d world.gpg
    gpg: WARNING: running with faked system time: 2020-01-01 00:00:00
    gpg: encrypted with 4096-bit RSA key, ID 04FDF78D1679DD94, created
    2016-12-17
          "Felix E. Klee <felix.klee at inka.de>"
    gpg: public key decryption failed: Invalid ID
    gpg: decryption failed: No secret key

Note that I have to run with faked system time since I cannot extend the
validity of my key. Anyhow, even without faking the time, I get the
error message.

*Any idea how to get `gpg` back to normal?*



More information about the Gnupg-users mailing list