Skip to content

Commit 3da5429

Browse files
committed
Add examples of KMS URIs without the --kms flag
1 parent e6b08fe commit 3da5429

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

command/ca/rekey.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,16 @@ Rekey a certificate forcing the overwrite of the previous certificate and key
8383
$ step ca rekey --force internal.crt internal.key
8484
'''
8585
86-
Rekey a certificate which key is in a KMS, with another from the same KMS:
86+
Rekey a certificate using a KMS, with another from the same KMS:
87+
'''
88+
$ step ca rekey --private-key yubikey:slot-id=9a yubikey.crt yubikey:slot-id=82
89+
'''
90+
91+
Rekey a certificate using a KMS with the <--kms> flag:
8792
'''
8893
$ step ca rekey \
8994
--kms 'pkcs11:module-path=/usr/local/lib/softhsm/libsofthsm2.so;token=smallstep?pin-value=password' \
90-
--private-key 'pkcs11:id=4002'
91-
pkcs11.crt 'pkcs11:id=4001'
95+
--private-key 'pkcs11:id=4002' pkcs11.crt 'pkcs11:id=4001'
9296
'''
9397
9498
Rekey a certificate providing the <--ca-url> and <--root> flags:

command/ca/renew.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ $ step ca renew --mtls=false --force internal.crt internal.key
107107
108108
Renew a certificate which key is in a KMS:
109109
'''
110+
$ step ca renew yubikey.crt yubikey:slot-id=9a
111+
'''
112+
113+
Renew a certificate which key is in a KMS, using the <--kms> flag:
114+
'''
110115
$ step ca renew \
111116
--kms 'pkcs11:module-path=/usr/local/lib/softhsm/libsofthsm2.so;token=smallstep?pin-value=password' \
112117
pkcs11.crt 'pkcs11:id=4001'

command/certificate/create.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,18 @@ $ step certificate create --csr --template csr.tpl --san coyote@acme.corp \
330330
"Wile E. Coyote" coyote.csr coyote.key
331331
'''
332332
333+
Create a CSR using <step-kms-plugin>:
334+
'''
335+
$ step certificate create --csr --key yubikey:slot-id=9a coyote@acme.corp coyote.csr
336+
'''
337+
333338
Create a root certificate using <step-kms-plugin>:
334339
'''
340+
$ step certificate create --profile root-ca --key yubikey:slot-id=9a 'KMS Root' root_ca.crt
341+
'''
342+
343+
Create a root certificate using <step-kms-plugin> and the <--kms> flag:
344+
'''
335345
$ step kms create \
336346
--kms 'pkcs11:module-path=/usr/local/lib/softhsm/libsofthsm2.so;token=smallstep?pin-value=password' \
337347
'pkcs11:id=4000;object=root-key'

0 commit comments

Comments
 (0)