temurin-build: Missing CA certificates in jdk8u181-b13
The jdk8u181-b13 update lost roughly half of cacerts
entries: it has only 80 entries while jdk8u172-b11 has 157.
This causes SSL errors like this (tried with some domains of Google and Amazon):
Caught: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at script_from_command_line.run(script_from_command_line:1)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
... 1 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
... 1 more
I tried Docker images as well as downloadable tar.gz – they both have the same version of truncated cacerts
file.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 21 (8 by maintainers)
Commits related to this issue
- Fix #676 — committed to johnoliver/openjdk-build by johnoliver 6 years ago
- Merge pull request #688 from johnoliver/fix-cacerts Fix #676 — committed to adoptium/temurin-build by karianna 6 years ago
@karianna wrote:
I ran into this very same issue today on Mac OS but for AdoptOpenJDK 11 build 11.0.5+10 (HotSpot VM) and was astonished when I read this thread and your comment that the issue should have been fixed for jdk8 by backporting certs from jdk11. Indeed, my tests with AdoptOpenJDK 8 were successfull. But JDK 11 throws an Exception:
I tried a
HttpURLConnection
HEAD request tohttps://www.google.com
which failed in AdoptOpenJDK 11.0.5+10 with this exception but works very well in AdoptOpenJDK 8.Do you have any clue why this still happens for JDK 11?
@johnoliver - Interesting, looks like we may need to backport certs from latest 11
My team is attempting to move to AdoptOpenJDK and just encountered a related error. The issue was encountered running on MacOS. This looks like a major bug.
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project esom-load-bgservice: Unable to execute SonarQube: Fail to get bootstrap index from server: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target