简体   繁体   English

iOS:ASIHTTPRequest验证自签名证书

[英]iOS: ASIHTTPRequest validate self sign certificate

With library asi-http-request and I have imported a certificate (.der) into resource bundle and want to make https connection only to server which providing the self sign certificate. 使用库asi-http-request ,我已将证书(.der)导入资源束中,并希望仅与提供自签名证书的服务器建立https连接。

How can I achive this? 我该如何实现? I don't want to just disabling setValidatesSecureCertificate and allowing all https connections. 我不想只是禁用setValidatesSecureCertificate并允许所有https连接。

Thanks! 谢谢!

使用补丁 ,asi-http-request能够信任自定义的信任库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM