Commit f5e017b9 authored by Guus der Kinderen's avatar Guus der Kinderen Committed by Dave Cridland

OF-892: Unavailability of optional certificates should cause WARN log statements.

parent b8df5086
......@@ -185,7 +185,10 @@ public class NIOConnection implements Connection {
return sslSession.getPeerCertificates();
}
} catch (SSLPeerUnverifiedException e) {
Log.warn("Error retrieving client certificates of: " + session, e);
if (Log.isTraceEnabled()) {
// This is perfectly acceptable when mutual authentication is not enforced by Openfire configuration.
Log.trace( "Peer does not offer certificates in session: " + session, e);
}
}
return new Certificate[0];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment