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

failed to run mvn compile -Dtrantor.deploy=true due to ssl certificate probelm #4

Open
hoozecn opened this issue Jul 14, 2021 · 0 comments

Comments

@hoozecn
Copy link

hoozecn commented Jul 14, 2021

Env

macos big sure
macbook pro 2019 intel amd64
jdk 1.8

problem

failed to run mvn compile -Dtrantor.deploy=true

[WARNING] Could not transfer metadata io.terminus.trantor:metadata-maven-plugin:0.17.8-SNAPSHOT/maven-metadata.xml from/to terminus (https://repo.terminus.io/repository/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Failure to transfer io.terminus.trantor:metadata-maven-plugin:0.17.8-SNAPSHOT/maven-metadata.xml from https://repo.terminus.io/repository/public/ was cached in the local repository, resolution will not be reattempted until the update interval of terminus has elapsed or updates are forced. Original error: Could not transfer metadata io.terminus.trantor:metadata-maven-plugin:0.17.8-SNAPSHOT/maven-metadata.xml from/to terminus (https://repo.terminus.io/repository/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

resolution

  1. download certificate of repo.terminus.io echo -n | openssl s_client -connect repo.terminus.io:443 -servername repo.terminus.io | openssl x509 > /tmp/terminus.cer
  2. load into system cacerts sudo keytool -import -alias terminus -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/lib/security/cacerts -file /tmp/terminus.cer
  3. password: changeit (not your sudo password)
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

1 participant