如何在iPhone钥匙串中创建一个SecIdentityRef对象,如果:
1)您已经在钥匙串中有私钥,并且
2)您刚刚收到证书?
在这种情况下,SecPKCS12Import没有帮助,除非有一种API可以从私钥和证书创建.p12文件。
在Mac上,SecIdentityCreateWithCertificate是答案,但在iPhone上不存在。
是否可以使用SecItemAdd方法实现? http://developer.apple.com/library/ios/#documentation/Security/Reference/keychainservices/Reference/reference.html 非常感谢,Andrew
在这种情况下,SecPKCS12Import没有帮助,除非有一种API可以从私钥和证书创建.p12文件。
在Mac上,SecIdentityCreateWithCertificate是答案,但在iPhone上不存在。
是否可以使用SecItemAdd方法实现? http://developer.apple.com/library/ios/#documentation/Security/Reference/keychainservices/Reference/reference.html 非常感谢,Andrew