Hi all,
I’m currently programming for the Nitrokey HSM under macOS High Sierra 10.13.3.
I’ve initialised the HSM, generated the DKEK and generated key pairs without any trouble. I’ve also tested with sc-hsm-tool to make sure there are no errors.
I compiled libnitrokey and used the Python bindings example, however I can’t get past the login process. As far as I can tell I’ve set up the device correctly, but wasn’t sure if I needed to call something else to get this to work or if I needed to call it at all.
I set debug to true and set the debug level to highest, however the output wasn’t useful:
[Tue Feb 27 15:45:27 2018][DEBUG_L2] setDefaultDelay
[Tue Feb 27 15:45:27 2018][DEBUG_L2] setDefaultDelay
[Tue Feb 27 15:45:27 2018][DEBUG_L2] connect
[Tue Feb 27 15:45:27 2018][DEBUG_L2] _connect *IN*
[Tue Feb 27 15:45:27 2018][DEBUG_L2] Connection success: 0
[Tue Feb 27 15:45:27 2018][DEBUG_L2] connect
[Tue Feb 27 15:45:27 2018][DEBUG_L2] _connect *IN*
[Tue Feb 27 15:45:27 2018][DEBUG_L2] Connection success: 0
[Tue Feb 27 15:45:27 2018][DEBUG_L2] total_comm_runs 0,
communication_successful 0,
(
command_successful_recv 0,
command_result_not_equal_0_recv 0,
),
sends_executed 0,
recv_executed 0,
successful_storage_commands 0,
total_retries 0,
(
busy 0,
busy_progressbar 0,
CRC_other_than_awaited 0,
wrong_CRC 0,
),
low_level_reconnect 0,
sending_error 0,
receiving_error 0,
[Tue Feb 27 15:45:27 2018][DEBUG_L2] disconnect
[Tue Feb 27 15:45:27 2018][DEBUG_L2] _disconnectSTORAGE
[Tue Feb 27 15:45:27 2018][DEBUG_L2] _disconnect *IN*
[Tue Feb 27 15:45:27 2018][DEBUG_L2] Disconnection success: 1
[Tue Feb 27 15:45:27 2018][DEBUG_L2] total_comm_runs 0,
communication_successful 0,
(
command_successful_recv 0,
command_result_not_equal_0_recv 0,
),
sends_executed 0,
recv_executed 0,
successful_storage_commands 0,
total_retries 0,
(
busy 0,
busy_progressbar 0,
CRC_other_than_awaited 0,
wrong_CRC 0,
),
low_level_reconnect 0,
sending_error 0,
receiving_error 0,
[Tue Feb 27 15:45:27 2018][DEBUG_L2] disconnect
[Tue Feb 27 15:45:27 2018][DEBUG_L2] _disconnectPRO
[Tue Feb 27 15:45:27 2018][DEBUG_L2] _disconnect *IN*
[Tue Feb 27 15:45:27 2018][DEBUG_L2] Disconnection success: 1
Could not connect to Nitrokey
Any pointers would be appreciated.