ethaden commented on code in PR #14130:
URL: https://github.com/apache/kafka/pull/14130#discussion_r1285078073


##########
clients/src/main/java/org/apache/kafka/common/security/ssl/DefaultSslEngineFactory.java:
##########
@@ -578,4 +594,335 @@ private List<byte[]> pemEntries(String pem) {
             return entries;
         }
     }
+
+    /**
+     * A wrapper around the original trust manager factory for creating common 
name logging trust managers.
+     * These trust managers log the common name of an expired but otherwise 
valid (client) certificate before rejecting the connection attempt.
+     * This allows to identify misconfigured clients in complex network 
environments, where the IP address is not sufficient.
+     */
+    static class CommonNameLoggingTrustManagerFactoryWrapper {

Review Comment:
   @omkreddy I moved the new classes and the corresponding test cases into 
separate files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to