javax.net.ssl.SSLException - trustAnchors参数必须为非空[duplicate]

问题描述 投票:3回答:1

这个问题在这里已有答案:

当我尝试运行./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
java gradle openssl openssl-engine
1个回答
1
投票

您还没有提到您正在使用的JDK或OS /发行版,但ca-certificates-java可能不是Oracle JDK / JRE中的依赖项,因此必须明确安装。

您可能需要运行

sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure

另见Error - trustAnchors parameter must be non-empty

© www.soinside.com 2019 - 2024. All rights reserved.