• 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: How to generate .cer file in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to generate .cer file in cocoa


  • Subject: Re: How to generate .cer file in cocoa
  • From: Devarshi Kulshreshtha <email@hidden>
  • Date: Wed, 21 May 2014 14:52:49 +0530

I need to share generated public key to other ios device, what is the
best way to share that?

On Wed, May 21, 2014 at 1:34 PM, Graham Cox <email@hidden> wrote:
>
> On 21 May 2014, at 5:41 pm, Devarshi Kulshreshtha <email@hidden> wrote:
>
>>  am working on below scenario:
>>
>> 1. User A generates public key and private key
>> 2. User A shares public key to user B
>> 3. User B encrypts some data using shared public key
>> 4. User B sends encrypted data to user A
>> 5. User A decrypts data using related private key
>>
>> (Note: this is a part of problem which I am trying to solve, related
>> mail chain has subject: 'Share and store RSA - public key in java
>> server and vice versa')
>>
>> I found this sample code provided by apple -
>> https://developer.apple.com/library/mac/samplecode/CryptoCompatibility/Introduction/Intro.html
>>
>> Here they have discussed that we can extract public key from .cer
>> file, which means that if we want to share public key we need to share
>> .cer file.
>>
>> Is there any method to generate .cer file in cocoa?
>
>
> Probably, but why bother? Just use SecKeyGeneratePair(), part of the security functions (assuming this is something private to an app of yours and not needed for compatibility with an existing security protocol). A search in the docs on that function will turn up something to go on.
>
> P.S. I've not used it myself, and I'm not offering this from experience - I just googled how to generate key pair in Cocoa. There may be better alternatives.
>
> --Graham



--
Thanks,

Devarshi

_______________________________________________

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


References: 
 >How to generate .cer file in cocoa (From: Devarshi Kulshreshtha <email@hidden>)
 >Re: How to generate .cer file in cocoa (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How to generate .cer file in cocoa
  • Next by Date: Re: How to generate .cer file in cocoa
  • Previous by thread: Re: How to generate .cer file in cocoa
  • Next by thread: Re: How to generate .cer file in cocoa
  • Index(es):
    • Date
    • Thread