An SSL error has occurred and a secure connection to the server cannot be made
2015-09-17 11:45
756 查看
Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server
cannot be made." UserInfo=0x7ffad9c498b0 {_kCFStreamErrorCodeKey=-9806, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x7ffadba9ae40 "An SSL error has occurred and a secure connection to the server cannot
be made.", NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, NSErrorFailingURLStringKey=iption=An SSL error has occurred and a secure connection to the
server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, _kCFStreamErrorDomainKey=3}
在info.plist文件里面手动添加 NSAppTransportSecurity, NSAllowsArbitraryLoads,应该就可以了
cannot be made." UserInfo=0x7ffad9c498b0 {_kCFStreamErrorCodeKey=-9806, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x7ffadba9ae40 "An SSL error has occurred and a secure connection to the server cannot
be made.", NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, NSErrorFailingURLStringKey=iption=An SSL error has occurred and a secure connection to the
server cannot be made., NSErrorFailingURLKey=https://apitest.XXX.com/Login, _kCFStreamErrorDomainKey=3}
在info.plist文件里面手动添加 NSAppTransportSecurity, NSAllowsArbitraryLoads,应该就可以了
相关文章推荐
- 2015 Selenium大会
- Dedecms中列表页缩略图怎么大小控制
- android下访问已存在的sqlite数据库文件的办法
- 运维进行时-修改数据库密码
- HDU 5441 Travel(离线 + 带权并查集)——2015 ACM/ICPC Asia Regional Changchun Online
- IEulerRK
- GNU/GCC/G++ 编译/链接生成的常见段(section)表
- Linux2.6.32驱动笔记(2)字符设备驱动编程模型
- Ubuntu下mysql安装,登录
- FlowLayoutPanel控件
- Android 开发工具
- 关于联合查询与子查询的查询结果不同点_随笔
- Express调用mssql驱动公共类dbHelper
- 第一篇博客:关于学堂在线的操作系统实验准备工作
- mysql事件调度器
- Householder
- java session 解析
- Hibernate.util
- VB.Net刷点击
- STL - Predicate - Binary Predicate(双参判断式)