有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java无法找到请求目标的有效证书路径,即使是导入的证书

我知道在SOF中已经有很多“无法找到请求目标的有效认证路径”主题,但我的问题是,即使在我更新java文件夹中的cacert之后,错误仍然会发生

为了确保我已经导入了证书,cmd向我展示了这个

"Certificate was added to keystore"

不仅如此,我仍然不相信cmd向我展示了什么,然后我使用了keytool-list-keystore“certpath”-别名myKey

然后,结果是预期的,即

"myKey, Sep 29, 2016, trustedCertEntry, Certificate fingerprint (SHA1): and random code going here

这是我从Netbeans得到的错误消息

java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.novell.soa.ws.impl.transport.http.Http.post(Http.java:438)
at com.novell.soa.ws.impl.transport.http.HttpEndPoint.invoke(HttpEndPoint.java:195)
at com.novell.soa.ws.impl.soap.MessageHandlerInvoker.invokeClientMessageHandlers(MessageHandlerInvoker.java:106)
at com.novell.soa.ws.impl.soap.SOAPHandler.invoke(SOAPHandler.java:244)
at com.novell.soa.ws.impl.rpc.ClientDelegateImpl.invoke(ClientDelegateImpl.java:194)
at com.novell.soa.ws.portable.Stub._invoke(Stub.java:614)
at com.novell.soa.af.impl.soap.ProvisioningBinding_Stub.getAllProcesses(ProvisioningBinding_Stub.java:58)
at com.asia.xynapse.gateway.xpass.maxis.MobileGatewayWS.RequestQuery(MobileGatewayWS.java:337)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

还有更多

我真的很想解决它,伙计们。我不知道发生了什么,因为我已经导入了我在网上搜索的内容


共 (0) 个答案