* 2022-02-15 07:24:51-0500, Henning Follmann wrote:
> I do have my private keys on a smartcard. Everything works fine,
> but I noticed that gpg-agent does not forget the PIN of the card
> It just remembers it forever (as long as the card remains inserted).
> I have to physically remove the smartcard to wipe the PIN.
This is how OpenPGP smart cards work and I believe it can't be changed.
But from your computer you can "remove" the smart card by stopping
gpg-agent. You can use one of the following commands to stop gpg-agent:
gpgconf --kill gpg-agent
systemctl --user stop gpg-agent.service
The agent process will be started automatically next time it is needed
and smart card must be authenticated again with PIN.
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462
Attachment:
signature.asc
Description: PGP signature