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 (either wrap, json, or base64, default wrap)


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 (either
wrap,json, orbase64, defaultwrap)