Java applet did not load when visited using HTTP protocol using Java 7

We have a java applet on our website that has been working for ages. Then Java 7 came out, people installed it. When people with Java 7 visit our site using HTTPS, the applet does not load (ClassNotFoundException). The same site and the same applet when you visit the regular HTTP protocol works fine.

People with a previous version of Java (1.6.x) can see the applet using HTTP or HTTP without any problems.

Anything we can do on our side to solve this problem for people with Java 7 and enjoy staying with HTTPS?

Googled and did not see any relevant result. Any pointer would be greatly appreciated.

+6
source share
1 answer

The problem is resolved. In short, the reason is that the JSSE (Java Secure Socket Extension) implementation in Java 7 by default includes SNI (server name) by default, which requires the server name configured on the SSL (Secure Sockets Layer) server,

In the case of Apache, we need to do the following:

<VirtualHost default:443> # General setup for the virtual host DocumentRoot "/opt/apache/2.2.21/htdocs" ServerName your.servername.com:443 

We commented on this line earlier, and it works for all browsers and the entire Java applet until Java 7 comes out.

I had the same discussion on the Java Developers Forum below

https://forums.oracle.com/forums/message.jspa?messageID=10330444#10330444

+7
source

Source: https://habr.com/ru/post/915452/


All Articles