error: invalid key type: priv_validator[tmkms v0.6.3]
wlsaud619 opened this issue · 1 comments
Summary
Problems occur when importing keys while checking the "--help" option.
The actual importable key types are wrap, json, or base64, but the description says wrap or private_validator.
Please update the description later because it can be confusing.
Version
tmkms v0.6.3
Steps to Reproduce
-
tmkms yubihsm keys import -i 1 priv_validator priv_validator_key.json
-> error: invalid key type: prive_validator -
tmkms yubihsm keys import -i 1 priv_validator priv_validator_key.json --help
-> description: -t, --key-type KEY-TYPE type of key to import (wrap or priv_validator) -
Check "tmkms-0.6.3/src/commands/yubihsm/keys/import.rs"
-> description: Type of key to import (eitherwrap
,json
, orbase64
, defaultwrap
)
It looks like it's presently gated off the filename, rather than the -t
flag. Can you try importing a file named priv_validator.json
?
I agree that -t priv_validator
should work, and some of the documentation incorrectly suggests it does already.