@@ -28,14 +28,14 @@ type provisionersSelect struct {
2828
2929func newTokenCommand () cli.Command {
3030 return cli.Command {
31- Name : "new- token" ,
31+ Name : "token" ,
3232 Action : cli .ActionFunc (newTokenAction ),
3333 Usage : "generates an OTT granting access to the CA" ,
34- UsageText : `**step ca new- token** <hostname>
34+ UsageText : `**step ca token** <hostname>
3535 [--**kid**=<kid>] [--**issuer**=<issuer>] [**--ca-url**=<uri>] [**--root**=<file>]
3636 [**--not-before**=<time|duration>] [**--not-after**=<time|duration>]
3737 [**--password-file**=<file>] [**--output-file**=<file>] [**--key**=<file>]` ,
38- Description : `**step ca new- token** command generates a one-time token granting access to the
38+ Description : `**step ca token** command generates a one-time token granting access to the
3939certificates authority.
4040
4141## POSITIONAL ARGUMENTS
@@ -51,33 +51,33 @@ certificates authority.
5151
5252Get a new token for a DNS:
5353'''
54- $ step ca new- token internal.example.com
54+ $ step ca token internal.example.com
5555'''
5656
5757Get a new token for an IP address:
5858'''
59- $ step ca new- token 192.168.10.10
59+ $ step ca token 192.168.10.10
6060'''
6161
6262Get a new token that would be valid not, but expires in 30 minutes:
6363'''
64- $ step ca new- token --not-after 30m internal.example.com
64+ $ step ca token --not-after 30m internal.example.com
6565'''
6666
6767Get a new token that is not valid for 30 and expires 5 minutes after that:
6868'''
69- $ step ca new- token --not-before 30m --not-after 35m internal.example.com
69+ $ step ca token --not-before 30m --not-after 35m internal.example.com
7070'''
7171
7272Get a new token signed with the given private key, the public key must be
7373configured in the certificate authority:
7474'''
75- $ step ca new- token internal.smallstep.com --key token.key
75+ $ step ca token internal.smallstep.com --key token.key
7676'''
7777
7878Get a new token for a specific provisioner kid, ca-url and root:
7979'''
80- $ step ca new- token internal.example.com \
80+ $ step ca token internal.example.com \
8181 --kid 4vn46fbZT68Uxfs9LBwHkTvrjEvxQqx-W8nnE-qDjts \
8282 --ca-url https://ca.example.com \
8383 --root /path/to/root_ca.crt internal.example.com
0 commit comments