italia / italia/cie-nis-python-sdk

Non funziona con alcune CIE.

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
37
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.