Scroll to navigation

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

Device file name (default: /dev/ttyACM0).
Enable verbose operation.
Enable debug printout, including all data sent to/from YubiHSM.
Base output directory (default: /var/cache/yubikey-ksm/aeads).
Number of AEADs to generate.
Number of chars in generated public ids (default: 12). Changing this might not work well.
Key handles to encrypt the generated secrets with. Examples : "1", "0xabcd".
Public id of the first generated secret, in modhex.
Use random nonce generated from YubiHSM.

EXIT STATUS

0
Secrets generated successfully.
1
Failed to generate secrets.

BUGS

Report python-pyhsm/yhsm-generate-keys bugs in the issue tracker ⟨URL: https://github.com/Yubico/python-pyhsm/issues/

SEE ALSO

The home page ⟨URL: https://developers.yubico.com/python-pyhsm/

YubiHSMs and YubiKeys can be obtained from Yubico ⟨URL: http://www.yubico.com/ ⟩.

June 2012 python-pyhsm