File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
9498Rekey a certificate providing the <--ca-url> and <--root> flags:
Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ $ step ca renew --mtls=false --force internal.crt internal.key
107107
108108Renew 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'
Original file line number Diff line number Diff 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+
333338Create 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'
You can’t perform that action at this time.
0 commit comments