简体   繁体   English

在Guidewire的码头本地服务器中找不到有效的证书路径

[英]Unable to find valid certificate path in jetty localserver of Guidewire

I am unable to resolve this error of "Unable to find valid certificate path". 我无法解决“无法找到有效的证书路径”的错误。 I am setting all required system property eg 我正在设置所有必需的系统属性,例如

System.setproperty(javax.net.ssl.trustStoreType,"jks")
System.setproperty(javax.net.ssl.trustStore,keystorePath)
System.setproperty(javax.net.ssl.trustStorePassword,password)

I tried setting the VM arguments, but nothing is working for me. 我尝试设置VM参数,但没有任何帮助。 I am using Guidewire studio localServer (jetty). 我正在使用Guidewire Studio localServer(码头)。

Jetty does not use JVM javax.net.ssl.* system properties to configure the SSL for specific connectors. Jetty不使用JVM javax.net.ssl.*系统属性来配置特定连接器的SSL。

Look for anything in Guidewire studio that configures an SslContextFactory (the Jetty specific term for the SSL/TLS configuration belonging to a connector), and configure that. 在Guidewire Studio中寻找配置SslContextFactory (属于连接器的SSL / TLS配置的Jetty专用术语)的所有内容,然后进行配置。

The keystore would be taken from the JVM, so it kind of depends how you run your GW xCenter. 密钥库将从JVM中获取,因此它取决于您如何运行GW xCenter。

Since you ask about local Jetty the parameters you are looking for are 因为您询问本地码头,所以您要查找的参数是

-Djavax.net.ssl.keyStore=C:\{pathToKeystoreOnYourMachine}\keystore.jks
-Djavax.net.ssl.keyStorePassword={thePasswordToBeUsed}

In order to add those on gwb runServer level you would have to add a pass through prefix gw.passthrough. 为了在gwb runServer级别添加那些,您必须添加一个通过前缀gw.passthrough.的传递gw.passthrough. resulting in for example 导致例如

gwb runServer -Dgw.passthrough.javax.net.ssl.keyStore=/Java/jdk1.8.0_74/jre/lib/security/cacerts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM