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

Communication protocol mismatch! #1725

Open
fernvenue opened this issue Nov 7, 2024 · 4 comments
Open

Communication protocol mismatch! #1725

fernvenue opened this issue Nov 7, 2024 · 4 comments
Assignees

Comments

@fernvenue
Copy link

Hi, I'm using Yubico Authenticator on Debian Trixie/Testing, and pcscd service is running, but Yubico Authenticator still say that pcscd is not running, and I found out that there are some error messages in pcscd service:

Nov 07 14:42:18 OptiPlex pcscd[25770]: 00002907 ../src/winscard_svc.c:404:ContextThread() Communication protocol mismatch!
Nov 07 14:42:18 OptiPlex pcscd[25770]: 00000005 ../src/winscard_svc.c:406:ContextThread() Client protocol is 4:4
Nov 07 14:42:18 OptiPlex pcscd[25770]: 00000001 ../src/winscard_svc.c:408:ContextThread() Server protocol is 4:5

What should I do to fix this? Any help will be much appreciated :)

@ldet
Copy link

ldet commented Nov 13, 2024

Experiencing the same, using the flatpack from flathub on debian trixie. Downgrading pcscd and libpcsclite1 to version 2.2.3-1 worked for me. Had to build those packages from source though.

The minor protocol version increased, and the pcsc-lite protocol versions must match exactly between the version included in the flatpack and the host. The upstream developer has an Blog article about that issue: https://blog.apdu.fr/posts/2022/02/accessing-smart-cards-from-inside/

@joelpurra
Copy link

joelpurra commented Nov 15, 2024

The community flatpak on flathub mentions this as a packaging issue. The flatpak workaround is to use the beta flatpak.

NOTE: This (community) flatpak currently works only with distros that use version of pcsc-lite below 2.3.0. For distros that use version 2.3.0 and above use beta version of this flatpak. DON'T report this to Yubico.

Also successfully used ykman in a toolbox on Fedora F41 Silverblue; see linked issue.

@fernvenue
Copy link
Author

Thanks for @ldet and @joelpurra, install beta flatpak works for me :)

@AdamVe
Copy link
Member

AdamVe commented Dec 10, 2024

I can confirm that this issue is with the Flatpak version of Yubico Authenticator, which requires a version of pcsc-lite that is protocol-compatible with the pcscd installed on the host. The official version, built by Yubico and available for download at Yubico Authenticator, works as expected on the current Debian Trixie. I’ve just tested it with the nightly build from 2024-12-09.

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

No branches or pull requests

4 participants