giovedì, aprile 24, 2014

JRE and old appliances

If you need to access  via web old appliances like Brocade SAN switches with old firmware versions, it may happen that you go mad trying to make java work.
It doesn't matter how many settings you modify in java control panel, you shall not succeed unless you modify the file:

java.security

inside your JRE lib/security directory.

You have to modify this line:

jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024

setting a lower value, like:

jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 256

I've installed both JRE6 and JRE7, but I neeeded to modify just the file:

c:\Program Files\Oracle\Java\jre7\lib\security\java.security


2 commenti:

Anonimo ha detto...

Thanks for the post. This is an efficient work-around. Another method which is less efficient but doesn't require the edit is as follows:
You can check and see which version of Java is supported for the particular FOS release you have on your older Brocade SAN switch in the FOS Release Notes. You can then elect to run that older version of Java when you need to access that particular switch.

Mico ha detto...

Well... what you say WAS true before Java 7 update 51 (if I remeber correctly). Unfortunately, after that, the method I describe (found somewhere on the web) is the only solution that allows me to open the java gui of some old brocade I have to manage.