Skip to content

fix smartcard unusable key: https://dev.gnupg.org/T5782

Fixes the issue where a smartcard has to be used via command line once before it can be used via Kleopatra. Uses pretty much the same patch as was applied to the gpg --card-status command: https://github.com/gpg/gnupg/commit/f3f9f9b2844c35f7942ee904d5222523615cdad4 - switches from SCD LEARN --force to LEARN --sendinfo, where LEARN --sendinfo provides almost exactly the same information as SCD LEARN --force, while also creating shadow keys, enabling gpg to use the keys stored on the smartcard.

Tested with GPG and PIV cards, not tested with P15 or netcard.

Merge request reports