Branch: Tag:

2020-04-29

2020-04-29 12:06:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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();