iOS开发ASIHTTPRequest客户端证书支持

移动开发 iOS
本文为大家介绍了iOS开发ASIHTTPRequest客户端证书支持的内容,其中包括服务器要求提供客户端证书时可以随request发送证书,在iPhone/iPad示例工程中的ClientCertificateTests.m中有一个很有用的函数用来从PKCS12数据创建SecIdentityRef等等内容。

有时服务器要求提供客户端证书,从1.8版本开始,你可以随request发送证书。

  1. // Will send the certificate attached to the identity (identity is a SecIdentityRef) 
  2. [request setClientCertificateIdentity:identity]; 
  3.   
  4. // Add an additional certificate (where cert is a SecCertificateRef) 
  5. [request setClientCertificates:[NSArray arrayWithObject:(id)cert]]; 

在iPhone/iPad示例工程中的ClientCertificateTests.m中有一个很有用的函数用来从PKCS12数据创建SecIdentityRef (这个函数仅适用于iOS)。

责任编辑:闫佳明 来源: dreamingwish
相关推荐

2010-12-21 11:03:15

获取客户端证书

2013-07-21 18:22:59

iOS开发ASIHTTPRequ

2013-07-22 14:38:00

iOS开发ASIHTTPRequ

2013-07-21 18:18:00

iOS开发ASIHttpRequ

2013-07-21 18:27:15

iOS开发ASIHTTPRequ

2013-07-22 14:33:15

iOS开发ASIHTTPRequ

2013-07-22 14:15:17

iOS开发ASIHTTPRequ

2013-07-21 18:32:13

iOS开发ASIHTTPRequ

2013-07-22 13:54:32

iOS开发ASIHTTPRequ

2013-07-22 14:43:57

iOS开发ASIHTTPRequ

2013-07-22 14:25:29

iOS开发ASIHTTPRequ

2009-12-25 15:12:01

WPF平台

2015-07-06 10:48:56

iOS开发技巧

2015-07-13 14:05:32

ios开发多表视图

2021-09-22 15:46:29

虚拟桌面瘦客户端胖客户端

2012-02-10 10:27:54

WLANVDI

2011-08-17 10:10:59

2013-07-21 18:09:21

iOS开发ASIHttpRequ创建和执行reques

2013-07-22 14:02:17

iOS开发ASIHTTPRequ

2013-07-22 13:48:55

iOS开发ASIHTTPRequ使用Cookie
点赞
收藏

51CTO技术栈公众号