javax.net.ssl.SSLException - trustAnchors 参数必须为非空
javax.net.ssl.SSLException - the trustAnchors parameter must be non-empty
当我尝试 运行 ./gradlew run
我不断得到:
Downloading https://services.gradle.org/distributions/gradle-4.4.1-bin.zip
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
尝试过curl -v https://services.gradle.org/distributions/gradle-4.4.1-bin.zip
并且工作得很好
Connected to services.gradle.org (2400:cb00:2048:1::6810:aba6)
successfully set certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
您没有提到您使用的是 JDK 还是 OS/distro,但是 ca-certificates-java
可能不是 Oracle JDK/JRE 中的依赖项,所以这必须明确安装。
您可能需要 运行
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
另请参阅
Error - trustAnchors parameter must be non-empty
当我尝试 运行 ./gradlew run
我不断得到:
Downloading https://services.gradle.org/distributions/gradle-4.4.1-bin.zip
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
尝试过curl -v https://services.gradle.org/distributions/gradle-4.4.1-bin.zip
并且工作得很好
Connected to services.gradle.org (2400:cb00:2048:1::6810:aba6)
successfully set certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
您没有提到您使用的是 JDK 还是 OS/distro,但是 ca-certificates-java
可能不是 Oracle JDK/JRE 中的依赖项,所以这必须明确安装。
您可能需要 运行
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
另请参阅 Error - trustAnchors parameter must be non-empty