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

Failed to transmit with protocol T1 #616

Open
daneb-ifm opened this issue Jan 17, 2025 · 3 comments
Open

Failed to transmit with protocol T1 #616

daneb-ifm opened this issue Jan 17, 2025 · 3 comments

Comments

@daneb-ifm
Copy link

daneb-ifm commented Jan 17, 2025

Hello together,
I want to create a private key through piv function in v1.8.0 firmware. I receive the following error: Failed to transmit with protocol T1.
Any ideas? :)

Thanks!

1723       INFO pynitrokey.cli Timestamp: 2025-01-17 08:39:27.919986
1724       INFO pynitrokey.cli OS: uname_result(system='Windows', node='', release='10', version='10.0.26100', machine='AMD64')
1724       INFO pynitrokey.cli Python version: 3.9.13
1724       INFO pynitrokey.cli Cli arguments: ['nk3', 'piv', '--experimental', 'info']
1758       INFO pynitrokey.cli pynitrokey version: 0.7.3
1794       INFO pynitrokey.cli cryptography version: 44.0.0
1831       INFO pynitrokey.cli ecdsa version: 0.19.0
1860       INFO pynitrokey.cli fido2 version: 1.2.0
1923       INFO pynitrokey.cli pyusb version: 1.3.1
1954     WARNING pynitrokey.cli An unhandled exception occurred
Traceback (most recent call last):
  File "pynitrokey\cli\__init__.py", line 137, in main
  File "click\core.py", line 1161, in __call__
  File "click\core.py", line 1082, in main
  File "click\core.py", line 1697, in invoke
  File "click\core.py", line 1697, in invoke
  File "click\core.py", line 1697, in invoke
  File "click\core.py", line 1443, in invoke
  File "click\core.py", line 788, in invoke
  File "pynitrokey\cli\nk3\piv.py", line 175, in info
  File "pynitrokey\nk3\piv_app.py", line 84, in __init__
  File "smartcard\CardConnectionDecorator.py", line 86, in transmit
  File "smartcard\CardConnection.py", line 174, in transmit
  File "smartcard\pcsc\PCSCCardConnection.py", line 269, in doTransmit
smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T1. Zugriff verweigert : Zugriff verweigert  (0x00000005)
1957      DEBUG       root print: Critical error:
1957      DEBUG       root print: An unhandled exception occurred
1957      ERROR       root Failed to transmit with protocol T1. Zugriff verweigert : Zugriff verweigert  (0x00000005)
Traceback (most recent call last):
  File "pynitrokey\cli\__init__.py", line 137, in main
  File "click\core.py", line 1161, in __call__
  File "click\core.py", line 1082, in main
  File "click\core.py", line 1697, in invoke
  File "click\core.py", line 1697, in invoke
  File "click\core.py", line 1697, in invoke
  File "click\core.py", line 1443, in invoke
  File "click\core.py", line 788, in invoke
  File "pynitrokey\cli\nk3\piv.py", line 175, in info
  File "pynitrokey\nk3\piv_app.py", line 84, in __init__
  File "smartcard\CardConnectionDecorator.py", line 86, in transmit
  File "smartcard\CardConnection.py", line 174, in transmit
  File "smartcard\pcsc\PCSCCardConnection.py", line 269, in doTransmit
smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T1. Zugriff verweigert : Zugriff verweigert  (0x00000005)
@robin-nitrokey
Copy link
Member

Hi @daneb-ifm, this looks like a permissions error. The command needs to be run as admin. If this does not fix the problem, you can check the “System” and “Application” categories in the Windows Event Viewer for more information on the error.

@daneb-ifm
Copy link
Author

Hey @robin-nitrokey , thanks for the quick reply.
In the event viewer there are more informations available:

Smartcard-Lesegerät "Microsoft UICC ISO Reader 1" verweigerte IOCTL TRANSMIT: Zugriff verweigert. Wenn dieser Fehler weiterhin besteht, werden die Smartcard oder das Lesegerät möglicherweise nicht richtig ausgeführt.

Smartcard-Lesegerät "Microsoft UICC ISO Reader 1" verweigerte IOCTL POWER: Der an einen Systemaufruf übergebene Datenbereich ist zu klein.. Wenn dieser Fehler weiterhin besteht, werden die Smartcard oder das Lesegerät möglicherweise nicht richtig ausgeführt.

@daneb-ifm
Copy link
Author

I tried now on another device and receive the following error now: StatusError(27264) the file (fido2/hid/windows.py) is used by another process

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

2 participants