eGerrit - 无效 URL
eGerrit - Invalid URL
我正在尝试使用 eGerrit Eclipse 插件 (https://www.eclipse.org/egerrit/) for connecting to my gerrit server out of Eclipse. Everytime I try to connect I get an error that my URL (https://gerrit.isys-software.de) 无效。但我很确定 URL 是有效的,因为我可以毫无问题地在浏览器中调用它。有人使用 eGerrit 插件可以给我一些建议吗?
提前致谢:)
我已经解决了这个问题。无法验证证书,在 Eclipse-Log 中发现以下错误:
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at
sun.security.validator.PKIXValidator.doBuild(Unknown Source) at
sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at
sun.security.validator.Validator.validate(Unknown Source) at
sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) at
org.apache.http.conn.ssl.SSLContextBuilder$TrustManagerDelegate.checkServerTrusted(SSLContextBuilder.java:190) at
sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source)
... 84 more
下一步:通过控制台将服务器证书添加到自定义信任库:
keytool.exe -import -alias <alias> -file <path-to-certificate> -keystore <path-to-truststore>
在我使用 2 个信任库参数启动 Eclipse 后,可以毫无问题地建立连接。
-Djavax.net.ssl.trustStore=<path-to-truststore>
-Djavax.net.ssl.trustStorePassword=<password>
我正在尝试使用 eGerrit Eclipse 插件 (https://www.eclipse.org/egerrit/) for connecting to my gerrit server out of Eclipse. Everytime I try to connect I get an error that my URL (https://gerrit.isys-software.de) 无效。但我很确定 URL 是有效的,因为我可以毫无问题地在浏览器中调用它。有人使用 eGerrit 插件可以给我一些建议吗?
提前致谢:)
我已经解决了这个问题。无法验证证书,在 Eclipse-Log 中发现以下错误:
Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at
sun.security.validator.PKIXValidator.doBuild(Unknown Source) at
sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at
sun.security.validator.Validator.validate(Unknown Source) at
sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) at
org.apache.http.conn.ssl.SSLContextBuilder$TrustManagerDelegate.checkServerTrusted(SSLContextBuilder.java:190) at
sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source)
... 84 more
下一步:通过控制台将服务器证书添加到自定义信任库:
keytool.exe -import -alias <alias> -file <path-to-certificate> -keystore <path-to-truststore>
在我使用 2 个信任库参数启动 Eclipse 后,可以毫无问题地建立连接。
-Djavax.net.ssl.trustStore=<path-to-truststore>
-Djavax.net.ssl.trustStorePassword=<password>