Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 11:18 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: YubiKey Import Failed
PostPosted: Tue May 28, 2013 4:17 am 
Offline

Joined: Tue May 28, 2013 4:11 am
Posts: 1
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>


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Tue Jan 14, 2014 11:10 am 
Offline

Joined: Tue Nov 05, 2013 3:08 am
Posts: 17
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group