Quote:
Once at the "HSM>" prompt, I generated five secrets with the keygen command, and then tried to load in my yubikey data using the dbload command. Any input I provided it was met with "too short" or "invalid format" errors. The manual indicates it wants the output of a yubico configuration tool, so I was trying with variations of the ykcustomize output:
fixed: m:iecrfviecrfv
uid: h:000000000000
key: h:db2eaa9150919f236d5bc789459e227c
acc_code: h:000000000000
ticket_flags: APPEND_CR
config_flags:
extended_flags:
The above is the wrong format. The input should be in a CSV like format, like this: -
Code:
00001,ftftftfteeee,f0f1f2f3f4f5,4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d,,,
If you are using an Admin YubiKey, then you will need to have it in the saved in the YubiHSM on-device database with the dbload command. You can test that it is in the DB correctly by using the otpverify command, you should see it print " - ok" after entering the OTP.
If you didn't set a master key nor a Admin YubiKey, you shouldn't need to unseal/unlock the YubiHSM, attempting to do some might fail, I'm not sure. Perhaps attempting to unlock using an all-zeros key will work, I haven't tested it. In general if you attempt to unlock/unseal it with an invalid key it will actually lock it.