Skip to content

Commit 126cedf

Browse files
committed
tests: fix a temporary file removal
1 parent 54eb0e2 commit 126cedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rsa_genpkey_x509_csr.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ openssl req -verify -in server.csr -text -noout
1818

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

25-
rm rootca.key rootca.crt server.key server.csr server.crt
25+
rm rootca.key rootca.crt rootca.srl server.key server.csr server.crt

0 commit comments

Comments
 (0)