Commit 8a55726 1 parent 54eb0e2 commit 8a55726 Copy full SHA for 8a55726
File tree 1 file changed +3
-2
lines changed
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
16
16
# check the CSR
17
17
openssl req -verify -in server.csr -text -noout
18
18
19
+ echo 01 > rootca.srl
19
20
# issue the certificate by the TPM-based CA
20
21
openssl 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
22
23
# check the certificate
23
24
openssl x509 -in server.crt -text -noout
24
25
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