Scala Playframework 访问HTTPS网站证书错误解决方案
2016-03-10 17:28
579 查看
使用Playframework访问https网站报如下错误:
Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
正确的解决方案如下:
Make sure you have added your Certificate to your trust-store like this:
keytool -import -trustcacerts -keystore {JAVA_HOME}/jre/lib/security/cacerts -noprompt -alias -file {CORRECT_PATH}/what_ever.crt
If still the problem exists, set the path directly by setting java parameters in your execution command line like this:
-Djavax.net.ssl.trustStore={JAVA_HOME}/jre/lib/security/cacerts
引用地址:
http://stackoverflow.com/questions/27726968/how-to-use-play-ws-with-ssl
Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
正确的解决方案如下:
Make sure you have added your Certificate to your trust-store like this:
keytool -import -trustcacerts -keystore {JAVA_HOME}/jre/lib/security/cacerts -noprompt -alias -file {CORRECT_PATH}/what_ever.crt
If still the problem exists, set the path directly by setting java parameters in your execution command line like this:
-Djavax.net.ssl.trustStore={JAVA_HOME}/jre/lib/security/cacerts
引用地址:
http://stackoverflow.com/questions/27726968/how-to-use-play-ws-with-ssl
相关文章推荐
- 基于TCP协议的通信模型
- [易语言] 百宝云-易语言网络验证搭建视频教程
- Android Studio 找不到org.apache.http 相关包,编译不通过
- iOS9请求https问题
- java网络编程工具-URLConnection
- elasticsearch 警告 org.jboss.netty.handler.codec.frame.TooLongFrameException: HTTP content length exce
- HTTP Response Status Code -- HTTP响应代码中文详解
- http上传文件和进度监控以及构造multipart/form-data请求
- 网络 IP地址
- 网络检测 Reachability
- 获取select下面选中的value值和文本值。--http://blog.163.com/yiba_suanzao/blog/static/130557377201038113543135/
- AllocWithZone:http://blog.sina.com.cn/s/blog_4cd8dd130101mi37.html
- Linux网络编程 IO多路复用
- linux学习笔记:网络命令
- poj1459 网络最大流问题 ek算法
- http://www.dewen.net.cn/q/13558/100阶乘
- HTTP状态码
- 老男孩Linux学习 -- 关于Linux网络
- http://www.dewen.net.cn/q/9980/JQuery AJAX GBK 编
- 【网络流24题】试题库问题