Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

error: invalid key type: priv_validator[tmkms v0.6.3] #349

Open
wlsaud619 opened this issue Aug 12, 2019 · 1 comment
Open

error: invalid key type: priv_validator[tmkms v0.6.3] #349

wlsaud619 opened this issue Aug 12, 2019 · 1 comment

Comments

@wlsaud619
Copy link

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

  1. tmkms yubihsm keys import -i 1 priv_validator priv_validator_key.json
    -> error: invalid key type: prive_validator

  2. 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)

  3. Check "tmkms-0.6.3/src/commands/yubihsm/keys/import.rs"
    -> description: Type of key to import (either wrap, json, or base64, default wrap)

image

image

@tarcieri
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants