piv-go
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
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.
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.