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

Error: Unable to open the Yubikey card: connecting to smart card: the smart card cannot be accessed because of other connections outstanding #116

Open
dud225 opened this issue Mar 6, 2023 · 2 comments

Comments

@dud225
Copy link

dud225 commented Mar 6, 2023

Hello

I'm able to build a program with this library that allows me to successfully interact with my YubiKey. However under some conditions, e.g. after some idle period, I'm getting the aforementioned erorr:

Error: Unable to open the Yubikey card: connecting to smart card: the smart card cannot be accessed because of other connections outstanding

I'm not sure if there is anything wrong with piv-go. But I'm quite puzzled since I make thorough use of the Close() method and additionally I don't get this error with other tools e.g. libykcs11.so.

@udf2457
Copy link

udf2457 commented Apr 1, 2023

I stumbled accross this one today too.

I am using Close() but this does not appear to be honoured.

Even if I add time.Sleep(20 * time.Second) after Close() , piv-go still seems to be holding on to that connection.

@dstrbad
Copy link

dstrbad commented Oct 15, 2024

Any update on this one maybe? We stumbled across this one as well.

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