启动应用程序时出现此错误。
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”。但我仍然得到错误..
任何帮助都会被暗示......
答案 0 :(得分:0)
对用户进行身份验证的应用程序将Java密钥库作为其信任库。信任存储必须包含(作为可信证书)签署用户证书的证书颁发机构。将证书颁发机构放在base-64 ca.cer文件中并使用keytool -import -keystore YourKeystore -alias ca -file ca.cer -trustcacerts
。