Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpg fails to find libpcsclite.so #298

Closed
druimalban opened this issue Jan 13, 2018 · 8 comments
Closed

gpg fails to find libpcsclite.so #298

druimalban opened this issue Jan 13, 2018 · 8 comments

Comments

@druimalban
Copy link
Contributor

I am using the v0.2.1 release, and I attempted to use a Yubikey to sign the boot hashes.
Unfortunately, I have encountered a rather fatal error. I get the following message:

gpg: apdu_open_reader: failed to open driver `libpcsclite.so': Error loading library libpcsclite.so: No such file or directory
gpg: card reader not available
gpg: OpenPGP card not available: general error

This confuses me; gpg is built with the --enable-card-support option, so it has the internal CCID driver. However, I can't see how to force it to use the internal CCID driver, because that is the default.

@tlaurion
Copy link
Collaborator

tlaurion commented Aug 3, 2018

@duncanguthrie : do you still have the issue? Even after a make real.clean?

@druimalban
Copy link
Contributor Author

I don't. I can't reproduce it anymore, either.

@tlaurion
Copy link
Collaborator

tlaurion commented Aug 4, 2018

@osresearch : I'm having the error on a clean build from fedora-28, installed the minimal requirements per wiki.

I confirm that the library is nowhere to be found on built Heads from this branch

@druimalban
Copy link
Contributor Author

I am able to reproduce it if I have more than one smartcard reader installed - e.g. the Lenovo smartcard reader installed in the X230's ExpressCard slot and then insert the Yubikey. It might be because the Lenovo reader is not supported by old GnuPG, but I am not sure about this.

@tlaurion
Copy link
Collaborator

tlaurion commented Aug 4, 2018

Attempting to build with this branch, merging gcc8, coreboot481, fbwhiptail required changes and librem key.

My previous build environment was from a debian-9 template, but since librem key requires cMake 3.10+ I recreated a build environment based upon fedora-28, and resulting rom cannot generate gpg keys with gpg --card-edit

@tlaurion
Copy link
Collaborator

tlaurion commented Aug 4, 2018

@duncanguthrie

I am able to reproduce it if I have more than one smartcard reader installed - e.g. the Lenovo smartcard reader installed in the X230's ExpressCard slot and then insert the Yubikey. It might be because the Lenovo reader is not supported by old GnuPG, but I am not sure about this.

The library should or should not be there, and your error should be different then this one. You sure it is complaining about not finding libpcsclite.so?

@osresearch
Copy link
Collaborator

When the card is found, libpsclite is not used at all. On my x230 I have to have the correct USB modules loaded (xhci-hcd.ko/xhci-pci.ko for the left ones, ehci-hcd.ko/echi-pci.ko for the right one), otherwise I get the exact same error.

Do the cards show up in lsusb? VID should be 1050, I think.

@tlaurion
Copy link
Collaborator

tlaurion commented Aug 6, 2018

USB drivers were not loaded. Thanks for the heads up, @osresearch :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants