Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certification path issue when connecting to maven central #223

Open
hartman opened this issue Sep 21, 2021 · 1 comment
Open

Certification path issue when connecting to maven central #223

hartman opened this issue Sep 21, 2021 · 1 comment

Comments

@hartman
Copy link

hartman commented Sep 21, 2021

Anyone else have been having issues using the docker container to connect to maven central ? I use 3.8.2-jdk8 (linux/amd64) and recently I get:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target

when trying to reach repo.maven.apache.org. I noticed that they have a new certificate since sept. 7 and I suspect that the cacerts of upstream doesn't have the right (intermediate?) certificate available ? I just find it weird, because the server does send the intermediate and the root seems fairly old so should already be in cacerts... I thought that was enough. generally....

I proceeded to add the certificates to a command line provided truststore -Djavax.net.ssl.trustStore=file.jks and that did seem to 'fix' the problem, but doesn't seem like a proper solution to me.

@bbarry
Copy link

bbarry commented Jun 13, 2024

I see that this is quite old but I am getting:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: 
unable to find valid certification path to requested target

with maven:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants