Skip to content

Commit

Permalink
tests: fix a temporary file removal
Browse files Browse the repository at this point in the history
  • Loading branch information
gotthardp committed Jan 25, 2025
1 parent 54eb0e2 commit 126cedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rsa_genpkey_x509_csr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ openssl req -verify -in server.csr -text -noout

# issue the certificate by the TPM-based CA
openssl x509 -provider tpm2 -provider default -propquery '?provider=tpm2' \
-req -in server.csr -CAkey rootca.key -CA rootca.crt -CAcreateserial -out server.crt
-req -in server.csr -CAkey rootca.key -CA rootca.crt -CAserial rootca.srl -CAcreateserial -out server.crt
# check the certificate
openssl x509 -in server.crt -text -noout

rm rootca.key rootca.crt server.key server.csr server.crt
rm rootca.key rootca.crt rootca.srl server.key server.csr server.crt

0 comments on commit 126cedf

Please sign in to comment.