Skip to content

Commit ce9a8e6

Browse files
author
Steffen Klemer
committed
pkcs11 test: Write openssl config in correct order
1 parent c976684 commit ce9a8e6

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/xmlsec/test/p11_test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,16 @@ def setup():
173173
174174
[pkcs11_section]
175175
engine_id = pkcs11
176+
""")
177+
if openssl_version == "1.0":
178+
f.write("dynamic_path = %s" % component_path['P11_ENGINE'])
179+
180+
f.write("""
176181
MODULE_PATH = %s
177182
PIN = secret1
178183
init = 0
179184
""" % (component_path['P11_MODULE']))
180185

181-
if openssl_version == "1.0":
182-
f.write("dynamic_path = %s" % component_path['P11_ENGINE'])
183-
184186
signer_cert_der = _tf()
185187

186188
logging.debug("Generating self-signed certificate")

0 commit comments

Comments
 (0)