1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-24 11:19:19 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Herman Slatman
de85fd0cef Use github.com/smallstep/cli-utils and reorder imports 2024-09-30 13:25:46 +02:00
Herman Slatman
1a1536aa2f Undo change in MinSizeInsecureFlag from cli-utils 2023-03-10 16:58:32 +01:00
Herman Slatman
c771169e14 Fix error when using --insecure and creating RSA keys <2048 bits
Before this commit, the CLI would allow specifying RSA key sizes
smaller than 2048 when also setting `--insecure`, but creation of
the key would still fail with `the size of the RSA key should be
at least 2048 bits`, originating form the `keyutil.generateRSAKey`
function.

This commit enables the insecure mode for the `keyutil` package
when `--insecure` is provided, allowing short RSA keys to be created.

While there are existing tests for checking (in)compatible CLI
flags that involve short RSA keys, the command didn't seem to be
actually executed as part of the test. That's part of the reason
why this bug wasn't found earlier, I think.
2023-03-10 16:49:47 +01:00
max furman
f816f1a621 move errs package to cli-utils 2021-10-27 15:55:18 -07:00
max furman
6407b1b75f fixing gocritic linter feedback 2021-10-07 17:59:57 -04:00
Mariano Cano
79b66c93d1 Fix error message. 2019-03-20 11:28:28 -07:00
Mariano Cano
8f209c3a0f Use Ed25519 as default curve for OKP keys. 2018-12-26 12:50:22 -08:00
Mariano Cano
287190d733 Add missing comment. 2018-08-01 16:33:02 -07:00
Mariano Cano
233c47889b Use default RSA size and EC curve. 2018-08-01 11:42:49 -07:00
Mariano Cano
59d6e8ef87 Fix typo in P-521 curve name 2018-08-01 11:23:29 -07:00
max furman
60339176b6 standardize readging key algos, curves, sizes from the CLI 2018-07-30 18:42:37 -07:00