Commit 33ac8b31 authored by Nils Larsch's avatar Nils Larsch
Browse files

don't try to load cert/key when the "-nocert" option is set

parent 24484759
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -832,6 +832,8 @@ bad:
	if (s_key_file == NULL)
		s_key_file = s_cert_file;

	if (nocert == 0)
		{
		s_key = load_key(bio_err, s_key_file, s_key_format, 0, pass, e,
		       "server certificate private key file");
		if (!s_key)
@@ -848,6 +850,7 @@ bad:
			ERR_print_errors(bio_err);
			goto end;
			}
		}

	if (s_dcert_file)
		{