Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TomYule opened this issue Nov 20, 2020 · 0 comments

Comments

@TomYule
Copy link

TomYule commented Nov 20, 2020

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");

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant