OCSP stapling: open ssl_stapling_file in binary-mode. OCSP response uses the DER format and as such needs to be opened in binary-mode. This only has any effect under Win32.
Sergey Kandaurov
3 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
src/event/ngx_event_openssl_stapling.c
less
more
226
226
return NGX_ERROR;
227
227
}
228
228
229
bio = BIO_new_file((char *) file->data, "r");
229
bio = BIO_new_file((char *) file->data, "rb");
230
230
if (bio == NULL) {
231
231
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
232
232
"BIO_new_file(\"%s\") failed", file->data);