From 272bbc57dd53585e59fcf190162814b75b23aef6 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 6 Nov 2018 18:03:48 -0800 Subject: [PATCH] Remove new- prefix for ca token and ca certificate commands. --- README.md | 6 +++--- examples/README.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7b503d9b..ed1fbb31 100644 --- a/README.md +++ b/README.md @@ -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. ``` -$ 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 ``` @@ -219,12 +219,12 @@ configuration management solution (no user input) you would split the above flow into two commands. ``` -$ TOKEN=$(step ca new-token foo.example.com \ +$ TOKEN=$(step ca token foo.example.com \ --kid 4vn46fbZT68Uxfs9LBwHkTvrjEvxQqx-W8nnE-qDjts \ --ca-url https://ca.example.com \ --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 ``` diff --git a/examples/README.md b/examples/README.md index 2c0f0e3a..cfffbc26 100644 --- a/examples/README.md +++ b/examples/README.md @@ -128,7 +128,7 @@ And just run the client.go with a new token: ```sh certificates $ export STEPPATH=examples/pki 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 @@ -182,7 +182,7 @@ provisioner password: ```sh certificates $ export STEPPATH=examples/pki 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) Please enter the password to decrypt the provisioner key: Listening on :8443 ... @@ -220,7 +220,7 @@ But if we the client with the certificate name Mike we'll see: ```sh certificates $ export STEPPATH=examples/pki 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) Please enter the password to decrypt the provisioner key: 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 certificates $ export STEPPATH=examples/pki 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) Please enter the password to decrypt the provisioner key: Listening on :8443 ...