Java applets do not work under SSL/HTTPS

Bug #199680 reported by Kristoffer Lundén
8
Affects Status Importance Assigned to Milestone
icedtea-gcjwebplugin (Ubuntu)
Won't Fix
Undecided
Unassigned
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: firefox

Trying Suns java 5 & 6, Iced tea as well as plain GCJ. None of them work with applets under SSL (https). Normal http applets load just fine.

Hardy, updated as of 2008-03-08. Intel, 32 bit. Several people have this problem, see: http://ubuntuforums.org/showthread.php?t=718018 for more info.

The actual places it happens to me live are URL:s I can't disclose, but these googled URLs seem to exhibit the same behaviour:

https://jadc.dev.java.net/
https://jogl-demos.dev.java.net/applettest.html

Which is, "Start: applet not initialized." and nothing more happening. It's the same for all the plugins. Plain HTTP works fine.

Bug #157721 might be related, but it seemed too uncertain.

Related branches

Revision history for this message
Matti Lindell (mlind) wrote :

This is probably partly a duplicate of #173966 which is about Sun's java plugin not registering correctly with Hardy's firefox 3. You probably just tried with old icedtea java plugin which has now been removed from the archive. Could you uninstall all icedtea-java7 packages and try reproducing this with new icedtea-gcjwebplugin ?

Changed in firefox:
status: New → Incomplete
Revision history for this message
Kristoffer Lundén (kristoffer-lunden) wrote :

Nothing in bug #173966 was related, nor did any workaround affect anything: and plain HTTP did work, always. Probably cause is/was certificates.

Now, after removing all and installing icedtea-gcjwebplugin I see that a package called ca-certificates installed was included that wasn't there before.

And yes, it fixes the problem... kinda. Applets do load now, I think. At least the status message says so, but the browser hangs and stalls so much as soon as any applet been loaded, for any operation, that it's actually hard to tell, sorry.

It does seem that the SSL part is fixed with the new certs though, as far as I can tell. Thanks for the tip.

Revision history for this message
Matti Lindell (mlind) wrote :

applettest works with firefox-3 and sun-java6-plugin. Assigning to icedtea-gcjwebplugin.

Revision history for this message
Marcin T (mtoczydlowski) wrote :

Hello

I have similar problem on Hardy AMD64 with FF3 32 bit running Sun JRE 1.6 32bit

Applets work ok when they are accessed through HTTP (http://www.java.com/en/download/help/testvm.xml works perfect)

Problems start with applets over HTTPS. For example this page will not run the applet (https://www.java.com/en/download/help/testvm.xml)

Interestingly when applet is signed then there are no issues (this works: https://jogl-demos.dev.java.net/applettest.html)

Best Regards,
Marcin

Revision history for this message
Marcin T (mtoczydlowski) wrote :

Hi

I finally discovered what is the issue here. In appears that in case of unsigned applets, the code is unable to access SunJCE provider which contains most of the ciphers used by SSL protocol. This means that a session with SSL server is broken and effectively applet is not initialised.

This problem is related to configuration of JRE under linux due to export control restrictions. Unfortunately I don't know how to make JRE to use SunJCE by default.

As a workaround I have set up the following policies using Policy Manager:

grant {
  permission java.security.SecurityPermission "putProviderProperty.SunJCE";
};

grant {
  permission java.lang.RuntimePermission "getProtectionDomain";
};

grant {
  permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*";
};

I don't know how insecure my actions are, but this definitely fixed problems with applets under SSL / HTTPS.

Feel free to send me your ideas how to fix this issue in more elegant way.

Best,
Marcin

Revision history for this message
Matthias Klose (doko) wrote :

https://jogl-demos.dev.java.net/applettest.html works for me with icedtea6-plugin in the openjdk PPA.

Changed in icedtea-gcjwebplugin:
status: Incomplete → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

... and ca-certficates-java package installed.

Revision history for this message
Matthias Klose (doko) wrote :

fixed in 6b12~pre2

Changed in openjdk-6:
status: New → Fix Released
Changed in icedtea-gcjwebplugin:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.