Skip to content
Snippets Groups Projects
Commit 19780a52 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

fix CI on python 2.7

parent 8d0bd9bb
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ def create_test_cert_file(sanlist):
cert_file_count += 1
# first build a CSR
subprocess.run(
subprocess.check_call(
[
"openssl",
"req",
......@@ -81,8 +81,7 @@ def create_test_cert_file(sanlist):
"/",
"-out",
csr_filename,
],
check=True,
]
)
# now a config file describing the right SAN entries
......@@ -93,7 +92,7 @@ def create_test_cert_file(sanlist):
# finally the cert
ca_key_filename = os.path.join(os.path.dirname(__file__), "ca.key")
ca_cert_filename = get_test_ca_cert_file()
subprocess.run(
subprocess.check_call(
[
"openssl",
"x509",
......@@ -110,8 +109,7 @@ def create_test_cert_file(sanlist):
cnf_filename,
"-out",
cert_filename,
],
check=True,
]
)
return cert_filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment