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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com