diff --git a/src/server.cpp b/src/server.cpp index 55e57524..d9fa1538 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -378,14 +378,22 @@ std::ostream& operator<<(std::ostream& strm, const Server& serv) <<" auth="<cred->method <<(conn->iface->isTLS ? " TLS" : "") <<"\n"; - if(detail>2) - strm<<*conn->cred; if(detail<=2) continue; Indented I(strm); + strm<cred<<"\n"; +#ifdef PVXS_ENABLE_OPENSSL + if(conn->iface->isTLS && conn->connection()) { + auto ctx = bufferevent_openssl_get_ssl(conn->connection()); + assert(ctx); + auto cert = SSL_get0_peer_certificate(ctx); + strm<chanBySID) { auto& chan = pair.second; strm<name<<" TX="<statTx<<" RX="<statRx<<' ';