1

我有一个加密的 .p12 文件,我可以使用 方法导入它**SecPKCS12Import()**。在响应中,我得到了一个数组(如下所示)。

导入证书项数组: ( { chain = ( "" ); identity = ""; trust = ""; } )

我浏览了苹果文档(https://developer.apple.com/library/mac/#documentation/security/conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html

我能够正确地获得身份、信任和评估信任。但我不知道如何将该身份中的证书添加到 iPhone 钥匙串中。我在将证书添加到钥匙串时遇到问题。

我可以给一个 kSecAttrLabel 稍后识别证书吗?

4

0 回答 0