Loading src/httpd.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -1784,11 +1784,13 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections try { _fileServer = false; if (!sslcertpath.empty()) { std::cerr << "[HttpD] Loading cert bundle..." << std::endl; netplus::ssl::CertificateBundle bundle; if (!bundle.loadFromFile(sslcertpath, sslkeypath, sslpassword)) { _httpexception[HTTPException::Critical] << "failed to load cert/key: " << sslcertpath; throw _httpexception; } std::cerr << "[HttpD] Cert loaded, checking validity..." << std::endl; if (!bundle.cert.checkValidity()) { time_t now = time(nullptr); _httpexception[HTTPException::Critical] << "invalid certfile: " << sslcertpath Loading @@ -1797,8 +1799,11 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections throw _httpexception; } std::cerr << "[HttpD] Copying to certBundle map..." << std::endl; _certBundle[httpaddr] = bundle; std::cerr << "[HttpD] Creating SSL socket..." << std::endl; auto tss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); std::cerr << "[HttpD] Creating QUIC socket..." << std::endl; auto qss = std::make_unique<netplus::quic>(_certBundle, httpaddr, port, maxconnections, -1); _ServerSockets.push_back(std::move(tss)); Loading Loading
src/httpd.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -1784,11 +1784,13 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections try { _fileServer = false; if (!sslcertpath.empty()) { std::cerr << "[HttpD] Loading cert bundle..." << std::endl; netplus::ssl::CertificateBundle bundle; if (!bundle.loadFromFile(sslcertpath, sslkeypath, sslpassword)) { _httpexception[HTTPException::Critical] << "failed to load cert/key: " << sslcertpath; throw _httpexception; } std::cerr << "[HttpD] Cert loaded, checking validity..." << std::endl; if (!bundle.cert.checkValidity()) { time_t now = time(nullptr); _httpexception[HTTPException::Critical] << "invalid certfile: " << sslcertpath Loading @@ -1797,8 +1799,11 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections throw _httpexception; } std::cerr << "[HttpD] Copying to certBundle map..." << std::endl; _certBundle[httpaddr] = bundle; std::cerr << "[HttpD] Creating SSL socket..." << std::endl; auto tss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1); std::cerr << "[HttpD] Creating QUIC socket..." << std::endl; auto qss = std::make_unique<netplus::quic>(_certBundle, httpaddr, port, maxconnections, -1); _ServerSockets.push_back(std::move(tss)); Loading