【问题标题】:SSLHandshakeException cannot authenticate userSSLHandshakeException 无法验证用户身份
【发布时间】:2015-06-20 04:41:16
【问题描述】:

我在启动应用程序时收到此错误。

 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”。但我仍然收到错误..

如有任何帮助,将不胜感激......

【问题讨论】:

    标签: java jboss ssl-certificate keystore sslhandshakeexception


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2016-05-26
      • 1970-01-01
      • 1970-01-01
      • 2019-08-24
      • 2019-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-04-12
      相关资源
      最近更新 更多