Hi oleg,
My https call. Works fine with Sun JDK 1.4.1
I dont have the provision to move to IBM's Version
I am using commons-httpclient 2.0 beta, IBM JDK 1.3.1
(WSAD 4.0.3), Sun JSSE 1.0.3
I downloaded Sun JSSE 1.0.3 added the jar files from
that to WSAD JRE (to the ext directory)
changed the security file to add the following info:
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.crypto.provider.SunJCE
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.jsse.JSSEProvider
#security.provider.5=com.ibm.crypto.provider.IBMJCE
#security.provider.6=com.ibm.jsse.JSSEProvider
Also in my code I am doing the following :
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());
Security.insertProviderAt(new
com.sun.crypto.provider.SunJCE(),1);
I am getting the following exception:
java.net.SocketException: SSL implementation not
available
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown
Source)
at
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
at
org.apache.commons.httpclient.HttpConnection.tunnelCreated(HttpConnection.java:749)
at
org.apache.commons.httpclient.ConnectMethod.execute(ConnectMethod.java:204)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500)
<<stacktrace removed>>
Am I missing any thing that needs to be done?
thanks
NRR
--- Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
> This is in fact VERY troubling. Are you running the
> latest version of
> IBM Java 1.3 & IBMJSSE? If not, do you mind
> upgrading and giving it
> another shot? I would like to investigate this issue
> a bit further, but
> I do not have access to IBMJSSE and as far as I know
> it is not available
> as a free download. It is only shipped with IBM
> Websphere commercial
> products.
>
> Cheers
>
> Oleg
>
> On Fri, 2003-07-11 at 23:58, Ramanan nr wrote:
> > Oleg,
> >
> > The change is fruitful. I executed my app on Sun
> JDK
> > 1.4 and it works fine. The connection goes thru..
> as
> > expected.
> >
> > so the real issue was IBM Implementation of JSSE.
> >
> > thanks a lot for the valuable inputs.
> >
> > -
> > NRR
> >
> > --- "Kalnichevski, Oleg"
> > <[EMAIL PROTECTED]> wrote:
> > > It looks like the problem occurs inside
> > >
> >
>
org.apache.commons.httpclient.HttpConnection.tunnelCreated()
> > > method when HttpClient attempts to establish a
> > > secure tunnel via proxy. It would be interesting
> to
> > > find out if there are any log entries on the
> proxy
> > > side.
> > >
> > > Can you try to execute your application on Sun
> JDK
> > > 1.4 for a change? I have a slight suspicion that
> the
> > > problem may be somehow related to IBM
> implementation
> > > of JSSE
> > >
> > > Oleg
> > >
> > > -----Original Message-----
> > > From: Ramanan nr [mailto:[EMAIL PROTECTED]
> > > Sent: Freitag, 11. Juli 2003 18:43
> > > To: Commons HttpClient Project
> > > Subject: RE: SocketException
> > >
> > >
> > > Oleg,
> > >
> > > My log after enabling the logging for HttpClient
> > > follows. Looks like the connection is getting
> closed
> > > after the tunnelcreation. maybe my proxy is the
> > > culprit. I am yet to get my proxy log.
> > >
> > > does the log look fine from the httpclient
> > > prespective?
> > >
> > >
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [104] - Java version: 1.3.1
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [105] - Java vendor: IBM Corporation
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [106] - Java class path: myclasspath
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [107] - Operating system name: Windows NT
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [108] - Operating system architecture: x86
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [109] - Operating system version: 4.0
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [114] - SUN 1.2: SUN (DSA key/parameter
> generation;
> > > DSA signing; SHA-1, MD5 digests; SecureRandom;
> X.509
> > > certificates; JKS keystore)
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [114] - IBMJCE 1.2: IBMJCE Provider implements
> the
> > > following: HMAC-SHA1, MD2, MD5, MARS, SHA,
> > > MD2withRSA,
> > > MD5withRSA, SHA1withRSA, RSA, SHA1withDSA, RC2,
> RC4,
> > > Seal)implements the following:
> > > <<algo info...>>
> > >
> > >
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpClient.<clinit>
> > > [114] - JSSE 1.0: IBM JSSE provider
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.methods.GetMethod.<init>
> > > [184] - enter GetMethod(String)
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestBody
> > > [389] - enter
> > > EntityEnclosingMethod.setRequestBody(String)
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.methods.PostMethod.clearRequestBody
> > > [215] - enter PostMethod.clearRequestBody()
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.methods.EntityEnclosingMethod.clearRequestBody
> > > [212] - enter
> > > EntityEnclosingMethod.clearRequestBody()
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestContentLength
> > > [295] - enter
> > >
> EntityEnclosingMethod.setRequestContentLength(int)
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpState.setProxyCredentials
> > > [577] - enter
> HttpState.setProxyCredentials(String,
> > > String, Credentials
> > >
> > > DEBUG 07/11, 12:12:32
> > >
> org.apache.commons.httpclient.HttpConnection.<init>
> > > [273] - Creating connection for www.ups.com via
> > > proxy
> > > using protocol https:443
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpConnection.getSoTimeout
> > > [618] - HttpConnection.getSoTimeout()
> > >
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpConnection.setSoTimeout
> > > [601] - HttpConnection.setSoTimeout(10000)
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpConnection.getSoTimeout
> > > [618] - HttpConnection.getSoTimeout()
> > >
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpClient.executeMethod
> > > [498] - enter
> HttpClient.executeMethod(HttpMethod)
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpClient.executeMethod
> > > [549] - enter
> > >
> >
>
HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
> > > DEBUG 07/11, 12:12:32
> > >
> >
>
org.apache.commons.httpclient.HttpConnection.setSoTimeout
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]