Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2020-04-29
2020-04-29 12:06:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>
3034dbab8998988759f9291687c869887bc42a1d (
9
lines) (+
9
/-
0
)
[
Show
|
Annotate
]
Branch:
3034dbab8998988759f9291687c869887bc42a1d
StartTLSProtocol: Improved diagnostics for invalid certificate config.
2691:
array(int) keypairs = map(keypair_names, CertDB.get_keypairs_by_name) * ({});
+
if (!sizeof(keypairs)) {
+
report_error ("TLS port %s: %s", get_url(),
+
LOC_M(63,"No certificates found.\n"));
+
cert_err_unbind();
+
cert_failure = 1;
+
return;
+
}
+
// FIXME: Only do this if there are certs loaded? // We must reset the set of certificates. SSLContext ctx = SSLContext();