We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54eb0e2 commit 8a55726Copy full SHA for 8a55726
test/rsa_genpkey_x509_csr.sh
@@ -16,10 +16,11 @@ openssl req -new -newkey rsa:2048 -subj '/CN=My Server/C=TH/ST=Phuket/L=Phuket/O
16
# check the CSR
17
openssl req -verify -in server.csr -text -noout
18
19
+echo 01 > rootca.srl
20
# issue the certificate by the TPM-based CA
21
openssl x509 -provider tpm2 -provider default -propquery '?provider=tpm2' \
- -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
23
# check the certificate
24
openssl x509 -in server.crt -text -noout
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
0 commit comments