TerminusHQ / trantor-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hoozecn opened this issue · comments

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)