Klaus Demo nginx / 5d3a854
Mail: fixed error message about missing ssl_certificate_key. In 51e1f047d15d, the "ssl" directive name was incorrectly hardcoded in the error message shown when there are some SSL keys defined, but not for all certificates. Right approach is to use the "mode" variable, which can be either "ssl" or "starttls". Maxim Dounin 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
349349 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
350350 "no \"ssl_certificate_key\" is defined "
351351 "for certificate \"%V\" and "
352 "the \"ssl\" directive in %s:%ui",
352 "the \"%s\" directive in %s:%ui",
353353 ((ngx_str_t *) conf->certificates->elts)
354354 + conf->certificates->nelts - 1,
355 conf->file, conf->line);
355 mode, conf->file, conf->line);
356356 return NGX_CONF_ERROR;
357357 }
358358