0

启动应用程序时出现此错误。

 org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (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)
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (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)

System.setProperty("javax.net.ssl.trustStore", "Path to certificate)我通过..设置我的证书路径

但这对我不起作用..此外,我已将证书导入 Java Home 的“cacerts”。但我仍然收到错误..

任何帮助都会得到帮助......

4

1 回答 1

0

验证用户的应用程序有一个 Java 密钥库作为其信任库。信任库必须包含(作为受信任的证书)签署用户证书的证书颁发机构。将证书颁发机构放在 base-64 ca.cer 文件中并使用keytool -import -keystore YourKeystore -alias ca -file ca.cer -trustcacerts.

于 2015-04-14T14:31:27.850 回答