Commit 111a79d8 authored by jan.koester's avatar jan.koester
Browse files

test

parent 3f2c87f4
Loading
Loading
Loading
Loading
+1 −12
Changes for src/httpd.cpp: 1 added line, 12 removed lines.
Original line number Diff line number Diff line
@@ -208,12 +208,6 @@ libhttppp::HttpD::HttpD(int argc, char** argv) {
                bundle.cert = x509;
                bundle.privateKeyDer = keydata;
                
                // Load RSA key from DER data
                if (!netplus::rsa::loadRsaFromDerFile(keydata, bundle.rsa_key)) {
                    _httpexception[HTTPException::Critical] << "failed to load RSA private key from: " << keyder;
                    throw _httpexception;
                }
                
                _certBundle[httpaddr] = bundle;
                auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1);

@@ -271,12 +265,7 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections
                keyfile.close();
                
                bundle.privateKeyDer = keydata;
                
                // Load RSA key from DER data
                if (!netplus::rsa::loadRsaFromDerFile(keydata, bundle.rsa_key)) {
                    _httpexception[HTTPException::Critical] << "failed to load RSA private key from: " << sslkeypath;
                    throw _httpexception;
                }
                // Let ssl socket handle RSA key loading from privateKeyDer
                
                _certBundle[httpaddr] = bundle;
                auto ss = std::make_unique<netplus::ssl>(_certBundle, httpaddr, port, maxconnections, -1);