Om,

I'm wondering if the java.net.ssl.SSLSocketFactory is being configured correctly. I notice that you are using weblogic.net.http.HttpsURLConnection. Does your example also work if you do url.openConnection()? If not, then the Weblogic SSLSocketFactory is not registered correctly. By default, when opening SSL connections, HttpClient calls SSLSocketFactory.getDefault() to obtain a socket factory for creating SSL sockets. If this does not return a usable SocketFactory then things will not work. Assuming that SSLSocketFactory is not correctly configured you have two options:

1) Register the Weblogic SocketFactory with the SSLSocketFactory. This can probably be done by setting some system properties or registering a provider with Security.addProvider(). You will probably have to look into Sun's docs a little.
2) Create a custom HttpClient ProtocolSocketFactory. Take a look at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory for how to implement this. This socket factory must then must be registered with Protocol.registerProtocol().


Good luck.

Mike

On Tuesday, May 27, 2003, at 08:12 PM, Om Narayan wrote:

I am trying to use httpclient with weblogic 7.0.
It works fine without SSL, but when I try to use https urls it just sits there hanging. If I use weblogic's apis, the program works fine (btw, I am using the sslclient example that comes with weblogic).
I am using weblogic's implementation of SSL (not Sun's JSSE). Is there any special setup/installation necessary?


Om.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to