HTTP async client and accessing server certificate (SSL)

2013-04-29 Thread Sachin Nikumbh
Hi, I am currently using the HTTP async client in my application to communicate with a proprietary server. Now, I need to extend the functionality to include HTTPS support. We need to provide client authentication and I have the following picture of how I can provide client credentials. My first

Re: HTTP async client and accessing server certificate (SSL)

2013-04-30 Thread Oleg Kalnichevski
On Mon, 2013-04-29 at 11:27 -0400, Sachin Nikumbh wrote: > Hi, > > I am currently using the HTTP async client in my application to communicate > with a proprietary server. Now, I need to extend the functionality to > include HTTPS support. We need to provide client authentication and I have > the

Re: HTTP async client and accessing server certificate (SSL)

2013-05-13 Thread Sachin Nikumbh
Hi Oleg, Thanks a lot for the response. I have one more question. In my client application, I need to provide extra authorization based on the common name in the server certificate. I want to allow the request-response exchange (I am sending a POST request) only after the server passes this extra

Re: HTTP async client and accessing server certificate (SSL)

2013-05-15 Thread Oleg Kalnichevski
On Mon, 2013-05-13 at 22:10 -0400, Sachin Nikumbh wrote: > Hi Oleg, > > Thanks a lot for the response. I have one more question. > > In my client application, I need to provide extra authorization based on > the common name in the server certificate. I want to allow the > request-response exchang

Re: HTTP async client and accessing server certificate (SSL)

2013-05-30 Thread Sachin Nikumbh
Hi Oleg, Thanks for your reply. I started digging through the Apache async client code and have come with a way to access the server certificate immediately after the SSL handshake in the verify method of SSLSetupHandler, To achieve this, I created my own MySSLLayeringStrategy class that extends S

Re: HTTP async client and accessing server certificate (SSL)

2013-05-31 Thread Oleg Kalnichevski
On Thu, 2013-05-30 at 15:07 -0400, Sachin Nikumbh wrote: > Hi Oleg, > > Thanks for your reply. I started digging through the Apache async client > code and have come with a way to access the server certificate immediately > after the SSL handshake in the verify method of SSLSetupHandler, To achiev

Re: HTTP async client and accessing server certificate (SSL)

2013-05-31 Thread Sachin Nikumbh
Throwing an SSLException was the right thing to do. Now, everything is working as expected. Thanks a lot Sachin On Fri, May 31, 2013 at 4:59 AM, Oleg Kalnichevski wrote: > On Thu, 2013-05-30 at 15:07 -0400, Sachin Nikumbh wrote: > > Hi Oleg, > > > > Thanks for your reply. I started digging thr