Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yhsm-generate-keys(1) [debian man page]

yhsm-generate-keys(1)					      General Commands Manual					     yhsm-generate-keys(1)

NAME
yhsm-generate-keys - Generate AEADs with secrets for YubiKeys using a YubiHSM SYNOPSIS
yhsm-generate-keys --key-handles KEY_HANDLES --start-public-id START_ID [options] DESCRIPTION
With this tool, a YubiHSM can generate random secrets (using it's internal true random number generator), and these secrets protected in AEAD files can be stored on the host computer. The AEADs will be ready to be used by for example yhsm-yubikey-ksm(1) ), as a part of a YubiKey OTP validation service. To program YubiKeys with the generated secrets, it is possible to decrypt the AEADs (knowledge of the AES key used inside the YubiHSM is required) using yhsm-decrypt-aead(1) OPTIONS
-D, --device Device file name (default: /dev/ttyACM0). -v, --verbose Enable verbose operation. --debug Enable debug printout, including all data sent to/from YubiHSM. -O dir Base output directory (default: /var/cache/yubikey-ksm/aeads). -c integer Number of AEADs to generate. --public-id-chars integer Number of chars in generated public ids (default: 12). Changing this might not work well. --key-handles kh [kh ...] Key handles to encrypt the generated secrets with. Examples : "1", "0xabcd". --start-public-id id Public id of the first generated secret, in modhex. EXIT STATUS
0 Secrets generated successfully. 1 Failed to generate secrets. BUGS
Report python-pyhsm/yhsm-generate-keys bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/> SEE ALSO
The python-pyhsm home page <https://github.com/Yubico/python-pyhsm/> YubiHSMs and YubiKeys can be obtained from Yubico <http://www.yubico.com/>. python-pyhsm June 2012 yhsm-generate-keys(1)

Check Out this Related Man Page

yhsm-keystore-unlock(1) 				      General Commands Manual					   yhsm-keystore-unlock(1)

NAME
yhsm-keystore-unlock - Unlock the keystore in a YubiHSM SYNOPSIS
yhsm-keystore-unlock [options] DESCRIPTION
In versions of the YubiHSM before 1.0, the YubiHSM could be protected using a 'HSM password'. The YubiHSM would unlock it's cryptographic functions if the correct password was given, but it was a simple comparision test. In YubiHSM 1.0, the password was changed into an actual key that was used to decrypt the contents of the YubiHSM internal key store, which was then AES-256 encrypted using the new 'Master key' when stored in the device. In YubiHSM 1.0, the option to also require an YubiKey OTP to unlock the keystore was also added. One or more 'Admin YubiKeys' can be con- figured in the YubiHSM, and an OTP from one of these must also be provided before the YubiHSM will enable it's cryptographic functions. The OTP is simply validated against the non-encrypted internal database (not key store) in the YubiHSM though, but together with a 'Master key' not stored on the server with the YubiHSM, it provides enhanced security by being a second factor that an attacker can't just inter- cept even if the server is compromised. OPTIONS
-D, --device device file name (default: /dev/ttyACM0). -v, --verbose enable verbose operation. --debug enable debug printout, including all data sent to/from YubiHSM. --no-otp skip the prompt for an OTP. For use by scripts where no OTP is required and the Master Key is stored on the server with the YubiHSM. --stdin read password and/or OTP from stdin rather than prompting for them. Python prompts does not accept piped input, so this option have to be used to unlock the YubiHSM from a script for example. EXIT STATUS
0 YubiHSM keystore successfully unlocked. 1 Failed to unlock keystore. BUGS
Report python-pyhsm/yhsm-keystore-unlock bugs in the issue tracker <https://github.com/Yubico/python-pyhsm/issues/> SEE ALSO
The python-pyhsm home page <https://github.com/Yubico/python-pyhsm/> YubiHSMs can be obtained from Yubico <http://www.yubico.com/>. python-pyhsm December 2011 yhsm-keystore-unlock(1)
Man Page