Yes - all jars are in my classpath. I have even used the example code that comes with the jsse distribution.
Even this small example fails -
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
URL u = new URL("https://www.verisign.com");InputStream in = (InputStream)u.getContent();
Hi
I am facing a similar problem
Can you please share how you handled it?
Regards,
Hemant.
> Yes - all jars are in my classpath. I have even used
> the example code that comes with the jsse
> distribution.
>
> Even this small example fails -
>
> System.setProperty("java.protocol.handler.pkgs",
> "com.sun.net.ssl.internal.www.protocol");
> Security.addProvider(new
> com.sun.net.ssl.internal.ssl.Provider());
>
> URL u = new URL("https://www.verisign.com");
>InputStream in = (InputStream)u.getContent();
Spent some time to fix this problem and finally got the solution -
For me the problem solved when I added local_policy.jar and US_export_policy.jar into the CLASSPATH.
Funny thing was that it worked fine with Linux, but when application was moved to AIX, it stopped working with this export restriction error.
I have similar problem. I want to use common PKCS12 instead of JKS. It doesn't work with SUN jsse. I found that it should work with jsse from the third party. For the test, I copy the third party jars to the ext direcory in the JRE and start my program. The keys were loaded from keystore files (it's better than with SUN jsse). But than I receave this exception.