Giter Club home page Giter Club logo

Comments (14)

mouse07410 avatar mouse07410 commented on June 23, 2024 1

Does it look like another burp of the exclusive open that GnuPG deamons do?

from opensc.

popovec avatar popovec commented on June 23, 2024 1

When I tried to use MyEID card with gpg I found this page.. gpg can be used with any pkcs#11 token so it can also be used with Yubikey

https://sztsian.github.io/2022/02/20/Using-PKCS11-Token-With-GPG.html

from opensc.

Jakuje avatar Jakuje commented on June 23, 2024 1

One more option is to use pcsc-shared option to the scdaemon, that should prevent it using the exclusive access to the pcscd. Unless the Debian builds the gnupg with the bundled ccid driver which makes things much more ugly:

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=configure.ac;h=c21138641f031d425fbca8b46a0471e77e51b644;hb=HEAD#l452

from opensc.

bigon avatar bigon commented on June 23, 2024

Yes maybe, but I would expect that if the reader is ignored, opensc wouldn't take a lock on it at all

from opensc.

bigon avatar bigon commented on June 23, 2024

gnupg in debian is indeed built with the internal ccid driver, but it can be disabled with an option at runtime: https://sources.debian.org/src/gnupg2/2.2.40-1.1/doc/scdaemon.texi/?hl=273#L273

I'll try the pcsc-shared option

from opensc.

bigon avatar bigon commented on June 23, 2024

pcsc-shared doesn't seems to work either ?!

from opensc.

frankmorgner avatar frankmorgner commented on June 23, 2024

Since this topic regularely comes up, I've created some information in the wiki:

https://github.com/OpenSC/OpenSC/wiki/GnuPG-and-OpenSC

Feel free to add or modify.

from opensc.

bigon avatar bigon commented on June 23, 2024

@frankmorgner Thanks for the document.

Unfortunately none of the options are working for me

But the real question for opensc, is why doesn't the ignored_readers or card_drivers without openpgp is still locking the reader

Edit: Note that the PIV applet is disabled on the yubikey

from opensc.

frankmorgner avatar frankmorgner commented on June 23, 2024

Please add a log from OpenSC with ignored_readers and/or card_drivers set. I doubt that the options are ignored and/or that OpenSC is permanently locking the token.

from opensc.

bigon avatar bigon commented on June 23, 2024

OK I think I found something

If the yubikey is already plugged when the process is started/at boot and then I'm running gpg --card-status, it's working fine:
opensc-debug_already_plugged.txt

But if I'm plugging the Yubikey while opensc is already loaded by a process/after boot, it's not:
opensc-debug.txt

Configuration of opensc is the following:

app default {
        debug = 9;
        debug_file = /home/bigon/opensc-debug.txt;
        ignored_readers = "Yubico YubiKey";
}

Config of scdaemon:

bigon@eriador:~$ cat .gnupg/scdaemon.conf 
pcsc-driver /usr/lib/x86_64-linux-gnu/libpcsclite.so.1
card-timeout 5
disable-ccid
pcsc-shared

from opensc.

dengert avatar dengert commented on June 23, 2024

I note that your fingerprint reader also uses PCSC.
Google for: Broadcom Corp 58200 "PCSC"

A pcsc log might also help, as it maybe locking up there, as the last line in opensc-debug.txt is waiting it. And the library that called OpenSC was /usr/libexec/gsd-smartcard

Google for: gsd-smartcard

from opensc.

frankmorgner avatar frankmorgner commented on June 23, 2024

The log shows that OpenSC is ignoring the Yubikey and that it connects using a shared connection. I think you should now debug scdaemon (GnuPG) on what the problem could be.

from opensc.

bigon avatar bigon commented on June 23, 2024

Thanks for your time, I'll continue to debug this and let you know

from opensc.

bigon avatar bigon commented on June 23, 2024

Hello

FTR: http://lists.infradead.org/pipermail/pcsclite-muscle/2024-January/001449.html

from opensc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.