Re: SecIdentity from Certificate
Re: SecIdentity from Certificate
- Subject: Re: SecIdentity from Certificate
- From: Wim Lewis <email@hidden>
- Date: Wed, 4 Aug 2010 17:03:26 -0700
On Aug 4, 2010, at 3:23 PM, Apparao Mulpuri wrote:
> I am trying to construct SecIndentity from the certificate with extension .p12 as mentioned in http://developer.apple.com/mac/library/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html, but unfortunately kSecImportExportPassphrase, kSecImportItemIdentity and kSecImportItemTrust symbols are not defined in Security framework.
>
> Do we have any workaround for this. Actually my application should support Leopard as well. Do we have possibility for getting the SecIdentity from the Certificate data blob?
IIRC, on the desktop, you can use SecKeychainItemImport() to read a PKCS#12 blob and get a SecIdentityRef (from which you can extract the private key and certificate if you want). The security and cryptograhy APIs on the phone are a bit disjoint from the ones on the desktop.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden