Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add facility to generate split wrap key #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

driseley
Copy link

This PR fixes #12

It adds a facility to generate a split wrap key (and associated authentication key) without generating other keys:

[user@localhost release]$ ./yubihsm-setup genwrapkey --help
yubihsm-setup-genwrapkey
Create a new split wrapkey with associcated auth key

USAGE:
    yubihsm-setup genwrapkey [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -l, --label-prefix <label-prefix>    Label prefix for wrap key and auth key [default: ]

The optional --label-prefix parameter allows you to specify a prefix for the key labels, so they become:

  • prefix Application auth key
  • prefix Wrap key

This is my first delve into Rust (so be gentle on my change!!) - I built this locally with Rust 1.61 - it would not build with later versions (I think some deprecations have become errors)

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

Successfully merging this pull request may close these issues.

Feature Request: Add facility to generate a split wrapkey without generating other keys
1 participant