Skip to content

Commit e357d8d

Browse files
author
Andreas Nilsson
committed
SERVER-24176 Add log statement with connecting TLS peer name
1 parent e70bf33 commit e357d8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mongo/util/net/ssl_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ StatusWith<boost::optional<std::string>> SSLManager::parseAndValidatePeerCertifi
11241124

11251125
// TODO: check optional cipher restriction, using cert.
11261126
std::string peerSubjectName = getCertificateSubjectName(peerCert);
1127+
LOG(2) << "Accepted TLS connection from peer: " << peerSubjectName;
11271128

11281129
// If this is an SSL client context (on a MongoDB server or client)
11291130
// perform hostname validation of the remote server

0 commit comments

Comments
 (0)