我使用自签名证书来请求https购买ASIFormDataRequest
,但是可能存在问题:
发生连接失败:SSL问题(可能的原因可能包括错误/过期/自签名证书,时钟设置为错误日期)
__block ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:url]];
[request setValidatesSecureCertificate:NO];
[request startAsynchronous];
这真的解决了我的问题。但确实发现了其他问题。
看图片:我可以看到HTTPS响应明文,是安全吗?