Librem Key under non-PureOS Linux systems

Hi,

I want to use my Librem Key under Debian. But when I run:
$ gpg --card-status

I get an error in daemon.log:
gpg-agent[]: scdaemon[]: pcsc_list_readers failed: unknown PC/SC error code (0x8010002e)

Does anyone know, what do I need to do to make it work as it does in PureOS?

Very interested in this as well. I have one but havent used it since installing elementary.

I’m able to call gpg --card-status as root, so it’s clearly permissions problem. What controls permissions under PureOS for Librem Key? Is it udev? If so, where’s the rule file for it?

I figured it out. Just add a file /etc/udev/rules.d/60-libremkey.rules with the following content:

SUBSYSTEM==“usb”, ATTR{idVendor}==“316d”, ATTR{idProduct}==“4c4b”, ENV{ID_SMARTCARD_READER}=“1”, ENV{ID_SMARTCARD_READER_DRIVER}=“gnupg”

and restart udev with this command as root:

udevadm control --reload-rules && udevadm trigger

That was enough for me.

2 Likes