You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Brijesh Deo <bd...@SonicWALL.com> on 2009/04/15 07:19:48 UTC

How to implement a Https service using the core api?

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.

 

Thanks,

Brijesh

 


Re: How to implement a Https service using the core api?

Posted by Oleg Kalnichevski <ol...@apache.org>.
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