hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <David.K...@wamu.net>
Subject RE: Get "SSL implementation not available" with JDK 1.2.2, but not with 1.4.1
Date Fri, 02 May 2003 22:14:15 GMT
Ah, that was it.  I had also found an example of manually calling
"Security.addProvider()", but this is cleaner.  These providers (and
others) are already in this file in JDK 1.4.1.

> -----Original Message-----
> From: Oleg Kalnichevski [mailto:o.kalnichevski@dplanet.ch]
> 
> David,
> 
> You must be missing the following lines in your
> $JAVA_HOME/jre/lib/security/java.security
> 
> #
> # List of providers and their preference orders (see above):
> #
> 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
> 
> It's not enough just to copy jsse.jar into $JAVA_HOME/jre/lib/ext
> 
> Please note that these settings are applicable to Sun's implementation
> of JSSE only
> 
> I hope this helps
> 
> Oleg
> 
> On Fri, 2003-05-02 at 23:23, Karr, David wrote:
> > (Will there eventually be a "commons-httpclient-user" list?)
> >
> > I'm trying to use HttpClient to implement a connection to a remote
site
> > through an authenticated proxy.  I find that if I run with JDK
1.4.1, I
> > believe I'm getting through my proxy to the other site.  However, if
I
> > run with JDK 1.2.2, I get the following (with javax.net.debug set to
> > "ssl"):
> >
> > --------------------
> > keyStore is :
> > keyStore type is : jks
> > init keystore
> > init keymanager of type SunX509
> > default context init failed: java.security.PrivilegedActionException
> > java.net.SocketException: SSL implementation not available
> > 	at
> > javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275)
> > 	at
> >
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSo
> > cket(SSLProtocolSocketFactory.java:127)
> > <stack entries deleted>
> > --------------------
> >
> > I have "jsse.jar" in "$JAVA_HOME/jre/lib/ext", which I thought is
what's
> > required to fix things like this.  It doesn't appear to make any
> > difference, however.
> >
> > I'm using the nightly build from 20030502.
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-httpclient-dev-
> unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-httpclient-dev-
> help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-
> unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-
> help@jakarta.apache.org


Mime
View raw message