Hi James,
I downloaded the certificate from the browser, following this procedure:
- In the browser I opened the URL https://services.gradle.org/ and from there I downloaded the certificate as ds10pi2.cer
- I import the certificate onto the jvm truststore cacerts with this command
keytool -importcert -trustcacerts -alias “ds10pi2” -keystore /usr/lib/jvm/jdk-14.0.2+12/lib/security/cacerts -file /tmp/ds10pi2.cer - I executed the command gradlew
./gradlew -Dhttps.proxyHost=proxy.xxxxxxxx.net -Dhttps.proxyPort=8080 -Djavax.net.ssl.trustStore=$JAVA_HOME/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit :distribution:archives:oss-linux-s390x-tar:assemble --parallel
where JAVA_HOME=/usr/lib/jvm/jdk-14.0.2+12
from the beginning I have the same errors:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Downloading https://services.gradle.org/distributions/gradle-6.5-all.zip
Exception in thread “main” javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- I verified if the added cert is on the truststore
keytool -list -keystore /usr/lib/jvm/jdk-14.0.2+12/lib/security/cacerts
I do not know how to solve this issue. Any another idea.
Jose