Yubico Forum https://forum.yubico.com/ |
|
YubiKey Import Failed https://forum.yubico.com/viewtopic.php?f=22&t=1073 |
Page 1 of 1 |
Author: | freewill [ Tue May 28, 2013 4:17 am ] |
Post subject: | YubiKey Import Failed |
Hi, I am trying to configure YubiHSM but keep getting the following error when trying to import YubiKey. Any advise will be appreciated Quote: output dir : /var/cache/yubikey-ksm/aeads
key handles : {1: '1'} YHSM device : /dev/ttyACM0 Traceback (most recent call last): File "/usr/sbin/yhsm-import-keys", line 227, in <module> sys.exit(main()) File "/usr/sbin/yhsm-import-keys", line 224, in main return not import_keys(hsm, args) File "/usr/sbin/yhsm-import-keys", line 149, in import_keys aead = hsm.generate_aead(public_id.decode('hex'), kh) File "/usr/lib/pymodules/python2.6/pyhsm/base.py", line 404, in generate_aead return pyhsm.aead_cmd.YHSM_Cmd_AEAD_Buffer_Generate(self.stick, nonce, key_handle).execute() File "/usr/lib/pymodules/python2.6/pyhsm/cmd.py", line 73, in execute return self._read_response() File "/usr/lib/pymodules/python2.6/pyhsm/cmd.py", line 108, in _read_response return self.parse_result(res) File "/usr/lib/pymodules/python2.6/pyhsm/aead_cmd.py", line 82, in parse_result raise pyhsm.exception.YHSM_CommandFailed(pyhsm.defines.cmd2str(self.command), self.status) pyhsm.exception.YHSM_CommandFailed: <YHSM_CommandFailed instance at 0xb737e194L: Command YSM_BUFFER_AEAD_GENERATE failed: YSM_KEY_STORAGE_LOCKED> |
Author: | air [ Tue Jan 14, 2014 11:10 am ] |
Post subject: | Re: YubiKey Import Failed |
Quote: pyhsm.exception.YHSM_CommandFailed: <YHSM_CommandFailed instance at 0xb737e194L: Command YSM_BUFFER_AEAD_GENERATE failed: YSM_KEY_STORAGE_LOCKED> Not sure if you solved this already. I think you need to unlock the YubiHSM first. It looks like you set either the Master Key, or a Admin YubiKey. You can run the yhsm-keystore-unlock to unlock the HSM. This should hopefully resolve the issue. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |