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:[email protected]] 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
