ocsp和ldap 区别,iOS / Security.Framework的CRL和OCSP行为?

I'm trying to figure out what iOS' policy is when verifying certificates using Security.Framework regarding revocation of certificates.

I cannot find information about this in the docs for iOS.

In the context of an iPad project I'm working on at the moment, there is reason to demand checking revocation status for some certs. Anyone ideas on how to force CRL / OCSP checking during cert verification using Security.Framework? Or do I need to "fall back" to OpenSSL to accomplish this?

It seems that also on Mac OS X 10.6 CRL / OCSP checks are done optionally and have to be turned on manually through Keychain Access.

Martijn

解决方案

I have an answer to this question by Apple guys, I posted the full answer here:

To sum it up, there are several things to keep in mind for OCSP implementation on iOS:

OCSP policy cannot be configured at this moment

it works for the EV certificates only

high-level stuff, such as NSURLConnection or UIWebView use TLS security policy, which uses OCSP

SecTrustEvaluate is a blocking network operation

it works the "best attempt" - if OCSP server cannot be contacted, the trust evaluation will not fail

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值