-
Notifications
You must be signed in to change notification settings - Fork 28
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
0.4.31: Switching of identies often fails #295
Comments
Hi! I was touching this recently - will check that. |
It would be nice if you could look into this. It appears that re-plugging the device is now a hard requirement if one wants to switch the identity. |
I see. It looked fine for me yesterday. Can you elaborate that in a reproduction scenario with steps listed? I will re-check it. |
There are two scenarios (both using two identities): Not plugged in
Plugged in
|
On my setup I reproduce the "Plugged In" scenario on the previous version as well. Looking further. Command: pipx run "pynitrokey==0.4.30" start set-identity 1 |
@dvzrv |
Sorry, but that made it worse:
|
Argh, and this just YOLO starts a system service and socket. Please don't do stuff like that! |
|
Yes, I'm only using scdaemon. Should I (also) use pcscd? My scdaemon.conf currently only contains |
I have removed the Or, you could use |
This change does not work yet either:
FWIW, 0.4.30 works as intended for me!
That seems to be done with 0.4.30:
I also have 0 clue how multiple nitrokey starts are supported. It seems the last one plugged in gets its identity set (if there is more than one). |
@dvzrv In #305 I have added patches to use the whatever service connected to the smart card at the given moment, without changing the state of the system services. Hopefully this would work for you. Can you check it? It's not possible to select the device by serial number yet. Quick snippet:
|
Using the changes in #305 the output is rather verbose, but switching identities is now seemingly faster and it doesn't require elevated privileges anymore! Thanks! |
Hi! Since updating to 0.4.31, I noticed that a lot of times the switching of identities fails and only re-plugging the device (Nitrokey Start) helps.
nitropy
will show this:After replugging I get:
The text was updated successfully, but these errors were encountered: