File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 61
61
ssl_certificate localhost.crt;
62
62
ssl_certificate_key "store:pkcs11:token=NginxZero;object=nx_key_0";
63
63
64
+ ssl_password_file pin.txt;
65
+
64
66
location / {
65
67
# index index.html by default
66
68
}
83
85
ssl_certificate $ssl_server_name.crt;
84
86
ssl_certificate_key "store:pkcs11:token=NginxZero;object=nx_key_0";
85
87
88
+ ssl_password_file pin.txt;
89
+
86
90
location / {
87
91
# index index.html by default
88
92
}
@@ -133,7 +137,7 @@ activate = 1
133
137
134
138
[pkcs11_sect]
135
139
pkcs11-module-path = $libsofthsm2_path
136
- pkcs11-module-token-pin = file: $d /pin.txt
140
+ pkcs11-module-cache-pins = cache
137
141
# https://github.com/latchset/pkcs11-provider/commit/ab6370fd
138
142
pkcs11-module-quirks = no-deinit no-operation-state
139
143
activate = 1
@@ -173,7 +177,7 @@ foreach my $name ('localhost') {
173
177
174
178
system (' openssl req -x509 -new '
175
179
. " -subj /CN=$name / -out $d /$name .crt -text "
176
- . " -key 'pkcs11:token=NginxZero;object=nx_key_0' "
180
+ . " -key 'pkcs11:token=NginxZero;object=nx_key_0' -passin pass:1234 "
177
181
. " >>$d /openssl.out 2>&1" ) == 0
178
182
or plan(skip_all => " missing pkcs11-provider" );
179
183
}
You can’t perform that action at this time.
0 commit comments