don't try to load cert/key when the "-nocert" option is set
This commit is contained in:
parent
7f622f6c04
commit
3b2ba5f7fb
@ -832,6 +832,8 @@ bad:
|
|||||||
if (s_key_file == NULL)
|
if (s_key_file == NULL)
|
||||||
s_key_file = s_cert_file;
|
s_key_file = s_cert_file;
|
||||||
|
|
||||||
|
if (nocert == 0)
|
||||||
|
{
|
||||||
s_key = load_key(bio_err, s_key_file, s_key_format, 0, pass, e,
|
s_key = load_key(bio_err, s_key_file, s_key_format, 0, pass, e,
|
||||||
"server certificate private key file");
|
"server certificate private key file");
|
||||||
if (!s_key)
|
if (!s_key)
|
||||||
@ -848,6 +850,7 @@ bad:
|
|||||||
ERR_print_errors(bio_err);
|
ERR_print_errors(bio_err);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (s_dcert_file)
|
if (s_dcert_file)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user