public X509Certificate[] getPeerCertificates() {
        return (X509Certificate[]) context.getRequest().getAttribute("javax.servlet.request.X509Certificate");
    }
Returns the peer certificates for this connection. 

@return the peer certificates for this connection or null.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpConnection.java