}
// parse the server-only options
- if (strncmp(token, "dh=", 3) == 0) {
+ if (strncmp(token, "clientca=", 9) == 0) {
+ clientCaFile = SBuf(token + 9);
+ } else if (strncmp(token, "dh=", 3) == 0) {
// clear any previous Diffi-Helman configuration
dh.clear();
dhParamsFile.clear();
}
#endif
+ if (!loadClientCaFile())
+ return false;
+
+ // by this point all config related files must be loaded
if (!updateContextConfig(t)) {
debugs(83, DBG_CRITICAL, "ERROR: Configuring static TLS context");
return false;
}
-
- if (!loadClientCaFile())
- return false;
}
staticContext = std::move(t);