piv-go icon indicating copy to clipboard operation
piv-go copied to clipboard

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

Open dud225 opened this issue 2 years ago • 4 comments
trafficstars

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.

dud225 avatar Mar 06 '23 14:03 dud225

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.

udf2457 avatar Apr 01 '23 10:04 udf2457