Skip to content

java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: #5

Description

@TomYule

http://www.ibloger.net/article/3126.html
http://www.ibloger.net/article/3024.html
本人Macos 一直参考您的教程操作 唯独 导入证书 一直失败 尝试无数次方法 都不行
困扰我一个多星期
最终 使用
https://stackoverflow.com/questions/9619030/resolving-javax-net-ssl-sslhandshakeexception-sun-security-validator-validatore
在spring main方法前加入如下证书即可

System.setProperty("javax.net.ssl.trustStore", "/private/etc/cas/i-dz.keystore");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");

建议 博主 在教程里面 附上如下 解决方法

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions