[xSocket-develop] How to extract client SSL certificate
Status: Inactive
Brought to you by:
grro
|
From: Dragan G. <dg...@gm...> - 2008-07-31 15:26:04
|
Hi all, I'm using xSocket to write proxy which will use information from client SSL certificate in order to forward to one of the possible target URLs. I have used HttpProxy example from xsocketHttp V2_0_beta1 and added SSL support using SSLContext. That all is working, but I'm having problems to get right SSLSession object from SSLContext because I need id of the session in order to do that (I need SSLSession object in order to reach client SSL certificate). So if I pass SSLContext reference to my ForwardHandler and do something like this: SSLSessionContext sslSessionContext = sslContext.getServerSessionContext(); I just need sessionId in order to get SSLSession object.This id can be reached via SSLSocket for example, but I don't see how to get it. Is there any other way to get client SSL certificate in mutual SSL authentication case? |