Export restriction: SunJSSE only

HiI am trying to connect to an https server but am getting the following error - "java.lang.RuntimeException Export restriction: SunJSSE only". Ideas?
[191 byte] By [MaramM] at [2007-9-26 2:18:59]
# 1
Hi,Can you please check whether the JSSE1.0.2 specific jar files(jsse.jar, jcert.jar, jnet.jar) had been included or not in the classpath.Regards,Anil.Technical Support Engineer.
ramanil_indts at 2007-6-29 9:20:44 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2

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();

MaramM at 2007-6-29 9:20:44 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 3

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();

hpawar at 2007-6-29 9:20:44 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 4

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.

agavrin at 2007-6-29 9:20:44 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 5

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.

liebzeitr at 2007-6-29 9:20:44 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...