OpenPGP card and gpg-agent TTL

Matthias Apitz guru at
Sat Oct 30 15:50:21 CEST 2021


I'm using GnuPG together with an OpenPGP card. When I want to decrypt
something the gpg-agent is via pinentry asking for the PIN to unlock the card.

Normally I don't care about how long the card remains unlocked, because
I just withdraw the USB dongle after the operation. I was thinking that
the gpg-agent.conf entry 'max-cache-ttl' will also expire the unlocked
state of the OpenPGP card, which it does not. How could I do this? 

Because in the Purism L5 mobile the OpenPGP card is internally inserted behind
the battery and so I can't remove it that easy :-)


Matthias Apitz, ✉ guru at, +49-176-38902045
Public GnuPG key:
August 13, 1961: Better a wall than a war. And, while the GDR was still existing,
no German troups and bombs have been killed in Yugoslavia, Afghanistan, Afrika...

More information about the Gnupg-users mailing list