Skip to content

Commit 6fd0486

Browse files
committed
Tests: updated ssl_engine_keys.t test.
After merge with libp11, pkcs11 engine shared object was renamed from "engine_pkcs11.so" to "pkcs11.so". Changed configuration accordingly. Additionally, changed "init" to "1" in the engine configuration. This keeps pkcs11 engine loaded and prevents segmentation faults observed during nginx shutdown. While here, restored correct order of ssl_certificate and ssl_certificate_key.
1 parent 25b7a70 commit 6fd0486

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ssl_engine_keys.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ http {
4747
listen 127.0.0.1:8080;
4848
server_name localhost;
4949
50-
ssl_certificate_key engine:pkcs11:slot_0-id_00;
5150
ssl_certificate localhost.crt;
51+
ssl_certificate_key engine:pkcs11:slot_0-id_00;
5252
5353
location / {
5454
# index index.html by default
@@ -81,9 +81,9 @@ pkcs11 = pkcs11_section
8181
8282
[pkcs11_section]
8383
engine_id = pkcs11
84-
dynamic_path = /usr/local/lib/engines/engine_pkcs11.so
84+
dynamic_path = /usr/local/lib/engines/pkcs11.so
8585
MODULE_PATH = /usr/local/lib/softhsm/libsofthsm.so
86-
init = 0
86+
init = 1
8787
PIN = 1234
8888
8989
[ req ]

0 commit comments

Comments
 (0)