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

116 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
Lars Kellogg-Stedman
c592ed47ac Teach step ca init about --key-password-file
This commit permits you, when using the --root and --key options, to pass
the password for decrypting the key in --key-password-file rather than
requiring an interactive prompt.

Example usage:

    step ca init --root root.crt --key root.key \
      --key-password-file root_key_password ...

Closes #453
2024-02-13 12:24:39 -08:00
Herman Slatman
997d93eda0 Fix goimports error in GitHub actions 2023-01-31 17:04:22 +01:00
Carl Tashian
2b53fc2633 Address Max's feedback 2023-01-30 16:45:05 -08:00
Carl Tashian
828f54ca12 Clarify init questions about CA addresses 2023-01-30 16:36:58 -08:00
Carl Tashian
1fca7d43cc Updated copy on hosted authority init option 2023-01-18 13:05:27 -08:00
Carl Tashian
d61410c806 Updated copy on hosted authority init option 2023-01-18 13:04:41 -08:00
Herman Slatman
37ace5e3a2 Merge pull request #815 from smallstep/herman/fix-empty-dns-init
Add check for empty DNS value in ca init
2023-01-11 20:38:34 +01:00
Herman Slatman
2eaf1c7fff Change error message when --admin-subject and --remote-management=false 2023-01-11 20:08:45 +01:00
Herman Slatman
3dca2ff78a Change allEmpty implementation 2022-12-15 11:48:14 +01:00
Herman Slatman
1664675972 Add check for empty DNS value in ca init 2022-12-13 12:10:44 +01:00
Herman Slatman
6286df2f19 Update command/ca/init.go
Co-authored-by: Mariano Cano <mariano.cano@gmail.com>
2022-11-02 09:57:50 +01:00
Herman Slatman
d28911c85e Add ACME provisioner creation to LinkedCA --acme error message 2022-11-01 23:32:33 +01:00
Herman Slatman
58cf3aaa36 Update to latest github.com/smallstep/certificates 2022-10-25 23:11:49 +02:00
Herman Slatman
db2ce62912 Merge branch 'herman/init-with-remote-administration' of github.com:smallstep/cli into herman/init-with-remote-administration 2022-10-19 10:40:20 +02:00
Herman Slatman
9005627e10 Add additional flag guard for --admin-subject
The `--admin-subject` flag currently only makes sense when initializing
a CA with Remote Management enabled. There's no DB otherwise.

This is related to https://github.com/smallstep/certificates/pull/964.
It's not a complete fix, as the current way will only work at
CA initialization time; not at runtime.
2022-10-19 10:34:57 +02:00
Max
bf39266fdb Merge branch 'master' into herman/init-with-remote-administration 2022-10-18 22:24:48 -07:00
Herman Slatman
67ba16e849 Fix missing --admin-subject in usage 2022-10-14 16:10:05 +02:00
Herman Slatman
afc91c7630 Add --admin-subject to ca init
This allows the first super admin subject to be set when a new
CA is initialized. Usage is effectively limited to when remote
management is in use, because the super admin subject will only
be created when provisioners are stored in the database and the
admin API is enabled. It also doesn't work when the CA performs
automatic provisioner migration, as there's no nice way to pass
this information at the moment.

The flag can currently not be used with `--helm`.
2022-10-14 15:55:14 +02:00
Mariano Cano
d7a542f920 Work in progress of using go.step.sm/crypto 2022-09-29 18:56:03 -07:00
Herman Slatman
98bffaf501 Change --remote-administration to --remote-management
To be consistent with the documentation for Remote (Provisioner)
Management.
2022-09-29 12:45:22 +02:00
Herman Slatman
ad7306c412 Update reference docs
Closes #577
2022-09-27 17:22:57 +02:00
Herman Slatman
5621b2fe47 Add --acme flag on ca init 2022-09-27 15:28:13 +02:00
Herman Slatman
736ea97ed5 Add --remote-administration flag to enable Admin API on ca init
This partially addresses https://github.com/smallstep/cli/issues/577,
but using `--remote-administration` as the flag name. It'll result
in the Admin API being enabled as well as a default provisioner and
corresponding admin credential being generated.

Currently this requires a DB to be configured too, as the logic
for creation of the new PKI stores the new provisioner and admin
in the DB at all times when the Admin API gets enabled.

The behavior this flag introduces might become the default at
some point.
2022-09-27 14:54:38 +02:00
Mariano Cano
071f3ee37e Merge pull request #728 from smallstep/skip-validation
Skip validation
2022-08-22 17:29:25 -07:00
Mariano Cano
f608007faa Add flags for kms keys
Fixes #721
2022-08-22 16:25:15 -07:00
Mariano Cano
eb52561761 Use go.step.sm/crypto/kms
This commit replaces the kms from certificates to the kms in
go.step.sm/crypto
2022-08-22 14:55:32 -07:00
Herman Slatman
51513d9a15 Merge pull request #612 from smallstep/herman/context-directory
Change authority and profile to default to context name when set
2022-02-15 22:56:58 +01:00
Herman Slatman
cbe6fd0199 Merge branch 'master' into herman/context-directory 2022-02-04 13:57:06 +01:00
Herman Slatman
14713cbded Improve handling of IPv6 addresses 2022-02-04 13:44:16 +01:00
Herman Slatman
9c6632dd50 Merge branch 'master' into herman/allow-ip-dns 2022-02-03 17:26:47 +01:00
Carl Tashian
54bfd34689 Quick copy change 2022-01-19 15:50:38 -08:00
Mariano Cano
0ef45eadff Add clarification for the listen port in step ca init --helm
Fixes smallstep/helm-charts#82
2022-01-19 15:28:09 -08:00
Herman Slatman
8a848bc287 Change authority and profile to default to context name when set
Before this change the authority and profile would default to
the first DNS name, potentially resulting in multiple CAs using
the same directories and configuration or configurations being
overwritten.

After this change the name of the context will be used as the
authority and profile name by default. They can still be overridden
using the `--authority` and `--profile` flags. When no context
name is provided, we still default to the first DNS name provided.

Fixes #606
2022-01-19 17:33:46 +01:00
Herman Slatman
bd67bd5b7d Normalize IPv6 addresses as IPs instead of hostnames 2022-01-19 16:16:29 +01:00
max furman
2881ea481e Remove internal ui package 2021-12-19 11:27:07 -05:00
max furman
100980b133 Fixing linter errors 2021-11-17 12:56:07 -08:00
max furman
e1ce7de736 Merge branch 'master' into max/steppath 2021-11-17 12:39:07 -08:00
max furman
e3d4f67527 Fixing linter warning errors 2021-11-16 11:39:14 -08:00
max furman
2eccb2be3d Fixing a load of errors from the PR review 2021-11-10 23:18:33 -08:00
max furman
77ca7a53a8 More contexts work
- move context warning before other output for ca init
- attempt to remove ssh include for context remove
2021-11-10 00:43:14 -08:00
max furman
7715b21d17 Updates for multiple SSH contexts and small fixes 2021-11-09 15:23:57 -08:00
max furman
a26fef4cd0 Fixing bugs and responding to PR review comments
- fixing bad merge of ca/init.go
- need to set caurl, fingerprint in context during bootstrap because
  they are used later.
- use ca.WithInsecure() for insecure transport
2021-10-28 23:33:40 -07:00
max furman
e933aed82d Move hidden helper commands into functions. 2021-10-27 15:55:18 -07:00
max furman
b2a7182ff2 Rebase fixes 2021-10-27 15:55:18 -07:00
max furman
3449a97225 Over master rebase and merges 2021-10-27 15:55:18 -07:00
max furman
c7b005bd21 Fixing up when contexts are used for ca bootstrap and init 2021-10-27 15:55:18 -07:00
max furman
608b27bff0 (wip) added context remove and general cleanup 2021-10-27 15:55:18 -07:00
max furman
27ebe5ccd1 (wip) managing step contexts 2021-10-27 15:55:18 -07:00