• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SecIdentity from Certificate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: UIImageView and UIViewContentModeBottomLeft
  • Next by Date: Getting a list of web browsers
  • Previous by thread: SecIdentity from Certificate
  • Next by thread: Getting a list of web browsers
  • Index(es):
    • Date
    • Thread