ASIHTTPRequest with SSL

  1. How to implement a https connection with SSL and ASIHTTPRequest?
    To do ssl with ASIHTTPRequest, you just need to pass a https url instead of a http one.

  2. Are there some special steps to do? 
    you don't need an real SSL certificate, you can disable validation 
    using: [request setValidatesSecureCertificate:NO];
    Disabling certificate validation does mean you lose some of the protection that SSL provides, making you vunerable to man-in-the-middle attacks etc.

  3. Can it be that this has nothing to do with ASIHTTPRequest?
    Yes, you're limited by what certificate signing authorities are supported by the iphone. So long as you stick to the big names it shouldn't really be an issue. (And as per 2. you can use a self signed certificate anyway.)

  4. Can someone post a link or describe the process of how a https connection can be established?
    It seems CCATS not necessary anymore, you need an ERN instead - the process has changed, as of Summer 2010! See http://tigelane.blogspot.com/2011/01/apple-itunes-export-restrictions-on.html. There are also extra restrictions if you want to distribute on the French app store, see Using SSL in an iPhone App - Export Compliance.


Ref:
http://stackoverflow.com/questions/3768893/asihttprequest-https-with-ssl
http://iphonedevelopment.blogspot.jp/2010/05/nsstream-tcp-and-ssl.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值