Browse Source

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

Mariano Cano 8 năm trước cách đây
mục cha
commit
272bbc57dd
2 tập tin đã thay đổi với 7 bổ sung và 7 xóa
  1. 3 3
      README.md
  2. 4 4
      examples/README.md

+ 3 - 3
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
 ```
 

+ 4 - 4
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 ...