File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ openssl req -new -newkey rsa:2048 -subj '/CN=My Server/C=TH/ST=Phuket/L=Phuket/O
1616# check the CSR
1717openssl req -verify -in server.csr -text -noout
1818
19+ echo 01 > rootca.srl
1920# issue the certificate by the TPM-based CA
2021openssl x509 -provider tpm2 -provider default -propquery ' ?provider=tpm2' \
21- -req -in server.csr -CAkey rootca.key -CA rootca.crt -CAcreateserial -out server.crt
22+ -req -in server.csr -CAkey rootca.key -CA rootca.crt -CAserial rootca.srl -out server.crt
2223# check the certificate
2324openssl x509 -in server.crt -text -noout
2425
25- rm rootca.key rootca.crt server.key server.csr server.crt
26+ rm rootca.key rootca.crt rootca.srl server.key server.csr server.crt
You can’t perform that action at this time.
0 commit comments