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

Non-DSM Sequoia does not support {rsa2k, nistp*}, reflect that in help message #76

Open
zugzwang opened this issue Oct 26, 2023 · 0 comments

Comments

@zugzwang
Copy link
Collaborator

When running a command to generate a local key with an unknown cipher suite, e.g.

sq-dsm key generate --export=priv.key --cipher-suite=xxx

we get the nice help message

error: 'xxx' isn't a valid value for '--cipher-suite <CIPHER-SUITE>'
	[possible values: cv25519, nistp256, nistp384, nistp521, rsa2k, rsa3k, rsa4k]

However, if we pass rsa2k, we get the confusing

$ sq-dsm key generate --export=priv.key --cipher-suite=rsa2k
Error: Unknown cipher suite 'rsa2k'

This is because non-DSM Sequoia does not support RSA2k (or the NIST curves).

The help message should reflect this.

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

1 participant