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

Non funziona con alcune CIE. #15

Open
paoloros97 opened this issue Jan 7, 2023 · 0 comments
Open

Non funziona con alcune CIE. #15

paoloros97 opened this issue Jan 7, 2023 · 0 comments

Comments

@paoloros97
Copy link

Salve,
Ho testato il vostro sdk su due diverse CIE.
Su una funziona tutto perfettamente, sull'altra fatica molto a reperire le informazioni.

In output ho questo:

Waiting for the CIE...
Connected!
 91% (9184 of 10062) |#################################################################################################################################################              | Elapsed Time: 0:00:05 ETA:   0:00:00Traceback (most recent call last):
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\main.py", line 47, in <module>
    main()
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\main.py", line 27, in main
    data = interface.extractData()
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\pkg\lib\CIEInterface.py", line 437, in extractData
    results[mapNames[byte]] = lambdas[byte]()
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\pkg\lib\CIEInterface.py", line 423, in <lambda>
    0x75: lambda: self.extractPhoto(),
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\pkg\lib\CIEInterface.py", line 501, in extractPhoto
    data = self.readDg(2, progressBar=True)
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\pkg\lib\CIEInterface.py", line 396, in readDg
    chunk = self.respSecureMessage(self.kSessEnc, self.kSessMac, nfc_response_to_array(respDg2))
  File "c:\Users\Paolo\Documents\Python_Programs\cie-nis-python-sdk\pkg\lib\CIEInterface.py", line 290, in respSecureMessage
    raise Exception('CIEInterface.respSecureMessage: the calculated MAC does not match the returned one')
Exception: CIEInterface.respSecureMessage: the calculated MAC does not match the returned one

È possibile che il chip della CIE sia difettoso? Non funziona neanche per loggarsi sui siti delle pubbliche amministrazioni (usando lettore NFC-usb e con middleware CIE).
Con la CIE buona invece mi funziona anche su tutti i siti della PA, quindi non penso sia colpa del lettore.

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

1 participant