Rocky V wrote: > >>> >>> Do you mean to say, I can use something like this: >>> secureProtocolSocketFactory = new >>> SslContextedSecureProtocolSocketFactory(...); >>> org.apache.commons.httpclient.protocol.Protocol >>> .registerProtocol( >>> "https", new org.apache.commons.httpclient.protocol.Protocol( >>> "https", (ProtocolSocketFactory)secureProtocolSocketFactory, >>> 443)); > >>>I was referring to this SslContextedSecureProtocolSocketFactory >>>(although you could find other ways to do it): >>>http://code.google.com/p/jsslutils/wiki/ApacheHttpClientUsage > >>>So all you'd have to do would be (with your SSLContext as below): > >>>SslContextedSecureProtocolSocketFactory secureProtocolSocketFactory = >>> new SslContextedSecureProtocolSocketFactory(sc); >>>Protocol.registerProtocol("https", new Protocol("https", >>> (ProtocolSocketFactory)secureProtocolSocketFactory, 443)); > >>>(if you're using the Apache client connector, otherwise use >>>HttpsURLConnection as you've done.) > > Typo error: > I could NOT find one org.jjsutils.jar inside restlet/lib > \restlet-1.1.7\lib\org.jsslutils_0.5 > but I don't see the class you mentioned > The closest is SSLContextFactory.class > Am I looking at wrong place ? Where can I find this class (which jar) > > Thanks for other part of your response. Informative though little > challenging to follow in practical world > of tight deadlines and high expectations. But I am def. gonna take that > point up with team and I agree > that's how it HTTPs be tested (otherwise it's like sheep in wolf's > clothing) > > >
-- View this message in context: http://n2.nabble.com/Restlet-client-connecting-to-server-with-self-signed-certificate-tp3715127p4558078.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2446950

