X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fs_server.c;h=8c6fcc240ad357ef3c2684d12f565b37bd95b919;hp=41b9736025b8da01a960882b5defd31054695dc3;hb=33ac8b31392c33d78a5b8d6188fe8e26f94544df;hpb=244847591f359be542d8d0fe995c349103cc7ac6 diff --git a/apps/s_server.c b/apps/s_server.c index 41b9736025..8c6fcc240a 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -832,21 +832,24 @@ bad: if (s_key_file == NULL) s_key_file = s_cert_file; - s_key = load_key(bio_err, s_key_file, s_key_format, 0, pass, e, - "server certificate private key file"); - if (!s_key) + if (nocert == 0) { - ERR_print_errors(bio_err); - goto end; - } + s_key = load_key(bio_err, s_key_file, s_key_format, 0, pass, e, + "server certificate private key file"); + if (!s_key) + { + ERR_print_errors(bio_err); + goto end; + } - s_cert = load_cert(bio_err,s_cert_file,s_cert_format, + s_cert = load_cert(bio_err,s_cert_file,s_cert_format, NULL, e, "server certificate file"); - if (!s_cert) - { - ERR_print_errors(bio_err); - goto end; + if (!s_cert) + { + ERR_print_errors(bio_err); + goto end; + } } if (s_dcert_file)