Commit aa624b78 authored by Luc Renambot's avatar Luc Renambot

Ignore missing alternate host keys (main key is still required).

Should close the issue #4


Former-commit-id: 0be45b84b102cae63b03b73fad914154fef74888
parent 175fcbe0
......@@ -905,10 +905,9 @@ function setupHttpsOptions() {
}).context;
}
catch (e) {
console.log("\n");
console.log(e);
console.log("\n----------");
console.log("Cannot open certificate for default host: ", config.host);
console.log("Cannot open certificate for default host:");
console.log(" \"" + config.host + "\" needs file: " + e.path);
console.log(" --> Please generate the appropriate certificate in the 'keys' folder");
console.log("----------\n\n");
process.exit(1);
......@@ -924,13 +923,12 @@ function setupHttpsOptions() {
}).context;
}
catch (e) {
console.log("\n");
console.log(e);
console.log("\n----------");
console.log("Cannot open certificate for the alternate host: ", config.alternate_hosts[h]);
console.log(" needs file: \"" + e.path + "\"");
console.log(" --> Please generate the appropriate certificates in the 'keys' folder");
console.log("----------\n\n");
process.exit(1);
console.log(" Ignoring alternate host: ", config.alternate_hosts[h]);
console.log("----------\n");
}
}
......@@ -947,7 +945,7 @@ function setupHttpsOptions() {
return certs[servername];
}
else{
console.log("Unknown host, cannot find a certificate for ", servername);
console.log("SNI> Unknown host, cannot find a certificate for ", servername);
return null;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment