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

nsc list keys #16

Closed
derekcollison opened this issue Dec 4, 2018 · 5 comments
Closed

nsc list keys #16

derekcollison opened this issue Dec 4, 2018 · 5 comments
Assignees

Comments

@derekcollison
Copy link
Member

Might be helpful.

@aricart
Copy link
Member

aricart commented Dec 4, 2018

@derekcollison what do you mean - you mean show the public keys or show if we have a signing nkey

or do we just want to dump all the keys we have?

@derekcollison
Copy link
Member Author

If I do have signing keys available, be good to be able to name them and easily chose one to sign things versus -K option.

@aricart
Copy link
Member

aricart commented Dec 8, 2018

This would be like naming an entry that lives elsewhere so the keystore can find it?

@derekcollison
Copy link
Member Author

Was mostly thinking about having signing keys and allowing me to pick which signing key I wanted to use.

@aricart
Copy link
Member

aricart commented Sep 13, 2019

Current commands on interactive, if you have more than one key associated allow you to pick interactively:

nsc add account -i
? account name A
? generate an account nkey Yes
? valid 0
? valid until (0 is always) 0
? select the key to sign the account  [Use arrows to move, type to filter]
> OAYIKPPTZGXWZDCQZJ4NTN6HN2DX4MA6OBSM54MWLLPFG54PIULSL6NP
  OC4RKFJI2VTIOCPOEEG34FUIE6ONOZZBYGIB2AZ7O5UV4ES6MSD752PV

you can also add keys, and use them for signing:
nsc generate nkey --account --store

and list the ones that are not referenced in the current o/a/u context:
nsc list keys --all --not-referenced

@aricart aricart closed this as completed Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants