Commit c55f81cd authored by jan.koester's avatar jan.koester
Browse files

test

parent f21eedc3
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
#include <fstream>
#include <iostream>
#include <cctype>
#include <ctime>
#include <string>
#include <thread>
#include <chrono>
@@ -1747,7 +1748,10 @@ libhttppp::HttpD::HttpD(int argc, char** argv) {
                    throw _httpexception;
                }
                if (!bundle.cert.checkValidity()) {
                    _httpexception[HTTPException::Critical] << "invalid certfile!";
                    time_t now = time(nullptr);
                    _httpexception[HTTPException::Critical] << "invalid certfile: " << derfile
                        << " (CN=" << bundle.cert.getSubjectCN()
                        << ", system_time=" << now << ")";
                    throw _httpexception;
                }

@@ -1786,7 +1790,10 @@ libhttppp::HttpD::HttpD(const std::string& httpaddr, int port,int maxconnections
                    throw _httpexception;
                }
                if (!bundle.cert.checkValidity()) {
                    _httpexception[HTTPException::Critical] << "invalid certfile!";
                    time_t now = time(nullptr);
                    _httpexception[HTTPException::Critical] << "invalid certfile: " << sslcertpath
                        << " (CN=" << bundle.cert.getSubjectCN()
                        << ", system_time=" << now << ")";
                    throw _httpexception;
                }