问题
When using the NIO SSL listener (org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener), there's no HttpServletContext available anymore (obviously), so digging into the possible Axis2 properties that could address the client certificate I found:
ssl.client.auth.cert.X509
This property, no matter what, is always null (I'm able to access other properties, so my code to access seems fine). Looking into the HttpCoreNIOSSLListener, it seems like it is filled whenever the request is done via HTTPS, but is not working in my case.
Am I looking into the right property? Did anyone succeed in retrieving this property? Is this a bug?
回答1:
Reported issue has been tested on WSO2 ESB 4.8.1 and it is working as expected.
来源:https://stackoverflow.com/questions/13608258/wso2esb-4-5-1-axi2-property-ssl-client-auth-cert-x509-is-always-null