Klaus Demo nginx / db5c307
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
226226 return NGX_ERROR;
227227 }
228228
229 bio = BIO_new_file((char *) file->data, "r");
229 bio = BIO_new_file((char *) file->data, "rb");
230230 if (bio == NULL) {
231231 ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
232232 "BIO_new_file(\"%s\") failed", file->data);