arturobernalg commented on code in PR #581:
URL: 
https://github.com/apache/httpcomponents-client/pull/581#discussion_r1768699939


##########
httpclient5/src/main/java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java:
##########
@@ -403,9 +404,15 @@ void verifySession(
                 final Certificate cert = certs[0];
                 if (cert instanceof X509Certificate) {
                     final X509Certificate x509 = (X509Certificate) cert;
+                    // Sanitize and log peer principal
                     final X500Principal peer = x509.getSubjectX500Principal();
+                    LOG.debug("Sanitized peer principal: {}", 
toEscapedString(peer));

Review Comment:
   done



-- 
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: dev-unsubscr...@hc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to