Skip to content

Commit 39ea27c

Browse files
committed
Add additional TPM KMS and TSS2 examples for step api token create
1 parent 8a7cd1b commit 39ea27c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: command/api/token/create.go

+17-2
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,29 @@ func createCommand() cli.Command {
5858
: File to read the private key (PEM format).
5959
6060
## EXAMPLES
61-
Use a certificate to get a new API token:
61+
Use a certificate and team ID to get a new API token:
6262
'''
6363
$ step api token create ff98be70-7cc3-4df5-a5db-37f5d3c96e23 internal.crt internal.key
6464
'''
6565
6666
Get a token using the team slug:
6767
'''
68-
$ step api token create teamfoo internal.crt internal.key
68+
$ step api token create team-foo internal.crt internal.key
69+
'''
70+
71+
Use a certificate with a private key backed by a TPM to get a new API token:
72+
'''
73+
$ step api token create team-tpm ecdsa-chain.crt 'tpmkms:name=test-ecdsa'
74+
'''
75+
76+
Use a certificate with a private key backed by a TPM simulator to get a new API token:
77+
'''
78+
$ step api token create team-tpm-simulator ecdsa-chain.crt 'tpmkms:name=test-ecdsa;device=/path/to/tpmsimulator.sock'
79+
'''
80+
81+
Use a certificate and a TSS2 PEM encoded private key to get a new API token:
82+
'''
83+
$ step api token create team-tss2 ecdsa-chain.crt ecdsa.tss2.pem --tpm-device /dev/tpmrm0
6984
'''
7085
`,
7186
}

0 commit comments

Comments
 (0)