Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19850

Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-6.5-all.zip’

$
0
0

Hi James,
I downloaded the certificate from the browser, following this procedure:

  1. In the browser I opened the URL https://services.gradle.org/ and from there I downloaded the certificate as ds10pi2.cer
  2. 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
  3. 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

  1. 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


Viewing all articles
Browse latest Browse all 19850

Trending Articles