On my Linux machine (Arch Linux, up to date as of this post) I am having trouble using both the OpenSC PKCS11 module and GnuPG.It seems like while an app using the PKCS11 module is started (in my case it's Firefox) it takes exclusive control of the smartcard and no other apps can use it. If I try to access the card via GnuPG I get a cryptic error:rjevski@workstation ~ % gpg2 --card-statusgpg: selecting openpgp failed: No such devicegpg: OpenPGP card not available: No such deviceBy making scdaemon more verbose I am able to get more info on the issue :scdaemon[8725] pcsc_connect failed: sharing violation (0x8010000b)Obviously this breaks not only command-line GPG but any app relying on it - I can't for example sign/encrypt e-mails in Evolution while my browser is running.A workaround would be to unload the PKCS11 module from Firefox but given that I actively use it it's a less than desirable solution. Does anyone know of a better one?
Smartcard sharing violation when using OpenSC and GnuPG
gnupg;smartcard;opensc