Java Error- Failed to validate the certificate on Mac with M2 Topic is solved

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
User avatar
dzuliani
Newbie
Newbie
Posts: 6
Joined: 2023-07-27, 15:20

Java Error- Failed to validate the certificate on Mac with M2

Post by dzuliani » 2023-10-06, 16:30

Hello,
I kindly ask some help for the following issue. I've installed palemoon (last version for Intel) on my new mackbook air. I've also installed the last Java version that runs on my mac: jre-8u192-macosx-x64.dmg.
I've also added, in the Java security options, some exceptions for a couple of sites that can run a Java application that I'm interested to.

When I try to access the mentioned web sites and try to run the remote Java application I get the following message:
Java Error- Failed to validate the certificate (see attached image it's in Italian)

Is there any option I need to change in the palemoon configuration?
You do not have the required permissions to view the files attached to this post.

User avatar
Moonchild
Project founder
Project founder
Posts: 39279
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Java Error- Failed to validate the certificate on Mac with M2

Post by Moonchild » 2023-10-06, 17:53

Looks like a server-side issue at first glance.
What does "more information" show?
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
dzuliani
Newbie
Newbie
Posts: 6
Joined: 2023-07-27, 15:20

Re: Java Error- Failed to validate the certificate on Mac with M2

Post by dzuliani » 2023-10-09, 09:29

Hello,

here the content of more info:
java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date
at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source)
at com.sun.deploy.security.RevocationChecker.check(Unknown Source)
at com.sun.deploy.security.TrustDecider.checkRevocationStatus(Unknown Source)
at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source)
at com.sun.deploy.security.SandboxSecurity.checkSignedSandboxSecurity(Unknown Source)
at com.sun.deploy.security.SandboxSecurity.isPermissionGranted(Unknown Source)
at com.sun.deploy.security.SandboxSecurity.isPermissionGranted(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getPermissions(Unknown Source)
at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:206)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Suppressed: com.sun.deploy.security.RevocationChecker$StatusUnknownException
at com.sun.deploy.security.RevocationChecker.checkCRLs(Unknown Source)
... 31 more
Caused by: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date
at sun.security.provider.certpath.OCSPResponse.verify(OCSPResponse.java:613)
at sun.security.provider.certpath.OCSP.check(OCSP.java:195)
at sun.security.provider.certpath.OCSP.check(OCSP.java:152)
at sun.security.provider.certpath.OCSP.check(OCSP.java:134)
at sun.security.provider.certpath.OCSP.check(OCSP.java:123)
at com.sun.deploy.security.RevocationChecker$2.run(Unknown Source)
at com.sun.deploy.security.RevocationChecker$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.RevocationChecker.doPrivilegedOCSPCheck(Unknown Source)
... 32 more
You do not have the required permissions to view the files attached to this post.

User avatar
Moonchild
Project founder
Project founder
Posts: 39279
Joined: 2011-08-28, 17:27
Location: Sweden

Re: Java Error- Failed to validate the certificate on Mac with M2

Post by Moonchild » 2023-10-09, 12:15

I'm not too intimately familiar with Java errors but it seems that maybe your system date/time is incorrect?
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
dzuliani
Newbie
Newbie
Posts: 6
Joined: 2023-07-27, 15:20

Re: Java Error- Failed to validate the certificate on Mac with M2

Post by dzuliani » 2023-10-10, 12:35

Yes the problem was the date on my Mac. After the correct setup for date and time, I was able to start everything without problems.
Thanks
David