Remove new- prefix for ca token and ca certificate commands.

pull/6/head
Mariano Cano 6 years ago
parent e050c5cf0f
commit 272bbc57dd

@ -210,7 +210,7 @@ provides a single command that will prompt you to select and decrypt an
authorized provisioner and then request a new certificate. authorized provisioner and then request a new certificate.
``` ```
$ step ca new-certificate "foo.example.com" foo.crt foo.key --ca-url ca.smallstep.com \ $ step ca certificate "foo.example.com" foo.crt foo.key --ca-url ca.smallstep.com \
--root /path/to/root_ca.crt --root /path/to/root_ca.crt
``` ```
@ -219,12 +219,12 @@ configuration management solution (no user input) you would split the above flow
into two commands. into two commands.
``` ```
$ TOKEN=$(step ca new-token foo.example.com \ $ TOKEN=$(step ca token foo.example.com \
--kid 4vn46fbZT68Uxfs9LBwHkTvrjEvxQqx-W8nnE-qDjts \ --kid 4vn46fbZT68Uxfs9LBwHkTvrjEvxQqx-W8nnE-qDjts \
--ca-url https://ca.example.com \ --ca-url https://ca.example.com \
--root /path/to/root_ca.crt --password-file /path/to/provisioner/password) --root /path/to/root_ca.crt --password-file /path/to/provisioner/password)
$ step ca new-certificate "foo.example.com" foo.crt foo.key --token "$TOKEN" \ $ step ca certificate "foo.example.com" foo.crt foo.key --token "$TOKEN" \
--ca-url https://ca.example.com --root /path/to/root_ca.crt --ca-url https://ca.example.com --root /path/to/root_ca.crt
``` ```

@ -128,7 +128,7 @@ And just run the client.go with a new token:
```sh ```sh
certificates $ export STEPPATH=examples/pki certificates $ export STEPPATH=examples/pki
certificates $ export STEP_CA_URL=https://localhost:9000 certificates $ export STEP_CA_URL=https://localhost:9000
certificates $ go run examples/basic-client/client.go $(step ca new-token client.smallstep.com) certificates $ go run examples/basic-client/client.go $(step ca token client.smallstep.com)
``` ```
## Bootstrap Client & Server ## Bootstrap Client & Server
@ -182,7 +182,7 @@ provisioner password:
```sh ```sh
certificates $ export STEPPATH=examples/pki certificates $ export STEPPATH=examples/pki
certificates $ export STEP_CA_URL=https://localhost:9000 certificates $ export STEP_CA_URL=https://localhost:9000
certificates $ go run examples/bootstrap-server/server.go $(step ca new-token localhost) certificates $ go run examples/bootstrap-server/server.go $(step ca token localhost)
✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com) ✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com)
Please enter the password to decrypt the provisioner key: Please enter the password to decrypt the provisioner key:
Listening on :8443 ... Listening on :8443 ...
@ -220,7 +220,7 @@ But if we the client with the certificate name Mike we'll see:
```sh ```sh
certificates $ export STEPPATH=examples/pki certificates $ export STEPPATH=examples/pki
certificates $ export STEP_CA_URL=https://localhost:9000 certificates $ export STEP_CA_URL=https://localhost:9000
certificates $ go run examples/bootstrap-client/client.go $(step ca new-token Mike) certificates $ go run examples/bootstrap-client/client.go $(step ca token Mike)
✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com) ✔ Key ID: DmAtZt2EhmZr_iTJJ387fr4Md2NbzMXGdXQNW1UWPXk (mariano@smallstep.com)
Please enter the password to decrypt the provisioner key: Please enter the password to decrypt the provisioner key:
Server responded: Hello Mike at 2018-11-03 01:52:52.678215 +0000 UTC!!! Server responded: Hello Mike at 2018-11-03 01:52:52.678215 +0000 UTC!!!
@ -240,7 +240,7 @@ rotates after approximately two thirds of the duration has passed.
```sh ```sh
certificates $ export STEPPATH=examples/pki certificates $ export STEPPATH=examples/pki
certificates $ export STEP_CA_URL=https://localhost:9000 certificates $ export STEP_CA_URL=https://localhost:9000
certificates $ go run examples/bootstrap-server/server.go $(step ca new-token localhost)) certificates $ go run examples/bootstrap-server/server.go $(step ca token localhost))
✔ Key ID: YYNxZ0rq0WsT2MlqLCWvgme3jszkmt99KjoGEJJwAKs (mike@smallstep.com) ✔ Key ID: YYNxZ0rq0WsT2MlqLCWvgme3jszkmt99KjoGEJJwAKs (mike@smallstep.com)
Please enter the password to decrypt the provisioner key: Please enter the password to decrypt the provisioner key:
Listening on :8443 ... Listening on :8443 ...

Loading…
Cancel
Save