标签: iphone ios keychain
我有一个加密的.p12文件,我可以使用方法**SecPKCS12Import()**导入它。在响应中,我得到一个数组(如下所示)。
**SecPKCS12Import()**
导入证书项目数组:( { 链=( “” ); identity =“”; trust =“”; } )
我浏览了苹果文档(https://developer.apple.com/library/mac/#documentation/security/conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html)
我能够正确地获得身份,信任和评估信任。但我不知道如何将该身份中的证书添加到iPhone钥匙串中。我在将证书添加到钥匙串时遇到了问题。
我可以提供kSecAttrLabel以便稍后识别证书。