hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brijesh Deo" <b...@SonicWALL.com>
Subject Re: How to implement a Https service using the core api?
Date Thu, 16 Apr 2009 04:32:22 GMT

Thanks, I got it. I can create my own SSLContext and from that get an
instance of SSLServerSocketFactory which will create a ServerSocket at
the specified port.

I was actually trying to find if there was a built-in class in the core
library.

Thanks,
Brijesh


-----Original Message-----
From: Oleg Kalnichevski [mailto:olegk@apache.org] 
Sent: Wednesday, April 15, 2009 11:53 PM
To: HttpComponents Project
Subject: [Junk released by Allow List] Re: How to implement a Https
service using the core api?

Brijesh Deo wrote:
> Hi,
> 
>  
> 
> I have created a HttpServer on the lines of the sample code
> 'ElementalHttpServer'
>
(http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore/
> src/examples/org/apache/http/examples/ElementalHttpServer.java).
> 
>  
> 
> I need to support Https on this server. What is required to make it
> secure?
> 
> I want to use my self signed SSL certificate to begin with and want to
> keep the provision to later replace it with a commercial SSL
> certificate.
> 
> Please let me know.
> 

It is all pretty much the same. You just need to create SSLServerSocket 
instead of ServerSocket.

Oleg


>  
> 
> Thanks,
> 
> Brijesh
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message