After one of JVM updates, my Belkin KVM (Remote IP Manager) has started refusing to start with “Falied to validate certificate” error followed by “PKIX path validation failed”:
I’ve found following exceptions in Java console:
sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Algorithm constraints check failed on disabled signature algorithm: MD5withRSA
com.sun.deploy.security.BlockedException: User has denied the privileges to the code
at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getPermissions(Unknown Source)
Google says that this is pretty common problem and returned plenty of receipts how to fix it.
Scanning the system for potential locations of the java.security file, there are four candidates. However, there is a catch: we should fix Java not in the system-wide location but the Java plugin for the web browser you’re using (Safari on MacOS in my case).
Jareks-MacBook-Pro:~ jhartman$ locate java.security
So we can skip the last three locations and just focus on the 1st one. Change the lines as described
Jareks-MacBook-Pro:~ jhartman$ edit "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/security/java.security"
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 256, \
DSA keySize < 1024, EC keySize < 224
jdk.tls.disabledAlgorithms=SSLv3, RC4, DH keySize < 768, \
EC keySize < 224
Save and restart the browser (Safari). This time the KVM applet can start (after plenty of security warnings though).
The application has to be also white-listed, otherwise it will generate error as below:
Open System Preferences, Java settings and add IP address of your KVM to the list:
Again: save and restart your browser.