You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I/X509Util: Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
问题描述
我在页面中设置
img
src
属性的时候,如果图片设置成我们服务器的https
链接,那么图片就不会显示。代码:不能正确显示来自服务器的图片:
我排查后发现这是 https 证书配置问题,错误日志:
页面中的
https
请求都是没问题的:尝试的解决办法
我试着在修改引擎代码,不要去做证书校验,在
org.zywx.wbpalmstar.platform.certificates.Http
中忽略证书校验:但是这并没有解决我们的问题,我在网上搜索之后发现 appcan 类似的问题:https自定义证书如何能通过安全认证,但是也是一直没有解决。
可能的解决方案
网上搜索发现在
onReceivedSslError
方法中接受证书就可以解决问题。问题
我该如何在
appcan
项目中配置https
证书呢?或者我该如何让我的
appcan
项目里全局请求网络的时候忽略校验证书呢?PS:项目已整体迁移到
Android Studio
中了。The text was updated successfully, but these errors were encountered: