1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-07 16:02:54 +03:00

33 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
Max
05f95e5b1e Upgrade certificate 0.26.0 | fix linter warnings (#1140)
* Update certificates to 0.26.0

* Fix linter warnings
2024-03-28 19:12:36 -07: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
Mariano Cano
d63010ef16 Use go.step.sm/jose 2022-10-04 15:26:08 -07:00
Mariano Cano
d7a542f920 Work in progress of using go.step.sm/crypto 2022-09-29 18:56:03 -07:00
Herman Slatman
def3afd34b Check input password value to not be empty 2022-06-08 22:51:57 +02:00
max furman
2881ea481e Remove internal ui package 2021-12-19 11:27:07 -05:00
max furman
f816f1a621 move errs package to cli-utils 2021-10-27 15:55:18 -07:00
max furman
860c213b97 Initial step path contexts commit
- move config and command packages to cli-utils
2021-10-27 15:55:16 -07:00
max furman
6407b1b75f fixing gocritic linter feedback 2021-10-07 17:59:57 -04:00
max furman
bff3f1d23b Reverse insecure and --no-password in RequireWithFlag 2021-05-17 11:57:10 -07:00
Max
37a648b70b Merge pull request #136 from smallstep/kty
Add kty|crv|size options to 'step ca certificate'
2019-08-27 13:01:13 -07:00
max furman
e49b733fbf switch to golangci-lint and fix lots of linting errors 2019-08-26 19:04:54 -07:00
max furman
b47a0b9110 Add kty|crv|size options to 'step ca certificate'
Fixes #133
2019-08-26 13:39:54 -07:00
Mariano Cano
dd0ffc87f4 Add --password-file flag when keys are created.
Allow non-interactive flows.
2019-01-18 16:19:44 -08:00
Mariano Cano
6adc5b19be Use pemutil.Options on the Serialize method. 2018-12-27 16:23:36 -08:00
Mariano Cano
a235659fe9 Add ouput to step crypto keypair. 2018-11-30 12:47:40 -08:00
Mariano Cano
1db806f317 Use ui instead of ssh/terminal package.
Fixes #33
2018-11-29 20:08:35 -08:00
Mariano Cano
e3e5cc1b62 Make sure all the short help uses the first person
Fixes #37
2018-11-28 12:41:55 -08:00
Mariano Cano
0cface6e9b Add flag --force on all commands using utils.WriteFile
Fixes smallstep/ca-component#121
2018-11-27 17:53:36 -08:00
Sebastian Tiedtke
a2965f03d0 Add a single space 2018-11-20 18:29:18 -08:00
Mariano Cano
2cb0f78f7b Add --from-jwk parameter to step crypto keypair command.
Fixes smallstep/ca-component#74
2018-10-17 11:50:01 -07:00
max furman
a1c96fc7a5 fix ineff assign to err 2018-08-07 10:54:03 -07:00
max furman
562481f975 switch to utils.ReadPassword and make getPass prompt consistent 2018-08-06 22:53:07 -07:00
max furman
3e518ce770 rename pem and x509 subpkgs
* crypto/pem -> crypto/pemutil
* crypto/certificates/x509 -> crypto/x509util
2018-08-02 01:03:12 -07:00
max furman
60339176b6 standardize readging key algos, curves, sizes from the CLI 2018-07-30 18:42:37 -07:00
max furman
53dae80fa2 added kty,curve,size flags to certificate create
* laying down route for x509 with 25519 keys
2018-07-26 20:57:48 -07:00
max furman
20c4a9aea4 Add support for OKP Ed25519 in **step crypto keypair** 2018-07-23 18:29:27 -07:00
Mariano Cano
e89aed72b0 Remove extra underscores and colons on help 2018-07-23 15:29:13 -07:00
max furman
396b587b01 break long lines in examples for certificate and keypair 2018-07-19 16:51:13 -07:00
max furman
8d079778d5 markdown formatting | deadcode removal from errs 2018-07-19 16:27:44 -07:00
Mariano Cano
93ea130784 Move internal crypto and utils packages. 2018-07-19 12:51:14 -07:00
Mariano Cano
c58db6b98b Initial commit 2018-07-17 16:06:17 -07:00