注册

图片消息下载报错no peer certificate

使用环信demo提供的代码下载图片,没做修改,返回no peer certificate错误。
EMClient.getInstance().chatManager().downloadFile(remoteFilePath, tempPath, headers, callback);图片的地址:https://a1.easemob.com/yicunchong/gouliao888/chatfiles/b91687b0-c84c-11e6-8ab2-37902fc38c50
已邀请:
是环信封装的HttpFileManager本身没有对https做SSL证书信任吗?我将https替换成http就好了
有些机型https可以下载,有的不行,是为什么呢?大婶们解答下,万谢!
设置options.setUseHttps(false)看看
下载操作是封装在hyphenatechat_3.1.5.jar里面,修改不了源码,只对外提供了下载方法
EMClient.getInstance().chatManager().downloadFile

要回复问题请先登录注册