Hi Maeglin, You would have to write a class mediator that digs in to Synapse/Axis2 message context and retrieves the certificate details.
I have not retrieved the certificate details myself. But if tomcat exposes it, you should be able to get to it. You can get to tomcat session through Message context. --Srinath On Mon, Sep 3, 2012 at 7:43 AM, Maeglin Vardamir <[email protected]> wrote: > Hello there, > > Here is my case. > > Client-------->Reverse Proxy-------->WSO2ESB proxy service------->Backend > webservices > https https > https > > I got several clients which connected the backend web service through > https connection. I have a local CA service to deliver certificates to > client, Reverse Proxy, Receiver and Sender of proxy service and backend > apache. > For now, I can get response from web service after making some changes to > configuration files. > > But I want more features. I want to re-direct request to different > endpoint according Common Name of the client's certificate. > > For example, I got one client. And I had two certificate for it to do > testing. One common name is Client1, the other one is Client2. The client > sent request to https://wso2esb_server:8243/services/echo. The WSO2ESB > proxy service would re-direct request to https://backend1/services/echoif > Common Name of the client's certificate is Client1. Otherwise, re-direct > the request to https://backend2/services/echo. > > Is it doable? How to do that? Any suggestion would be welcomed. > > Regards, > Bin > > _______________________________________________ > User mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/user > > -- ============================ Srinath Perera, Ph.D. http://www.cs.indiana.edu/~hperera/ http://srinathsview.blogspot.com/
_______________________________________________ User mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/user
