hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
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:02 GMT
It is also possible to dynamically register JSSE using:

	Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

If you also want to use https with java.net.URL you will also need to  
set the following system property:

	java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

Mike

On Friday, May 2, 2003, at 05:23 PM, 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.createS 
> o
> 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
>


Mime
View raw message