How to generate .cer file in cocoa

2014-05-21 Thread Devarshi Kulshreshtha
I 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

Re: How to generate .cer file in cocoa

2014-05-21 Thread Graham Cox
On 21 May 2014, at 5:41 pm, Devarshi Kulshreshtha devarshi.bluec...@gmail.com 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

Re: How to generate .cer file in cocoa

2014-05-21 Thread Devarshi Kulshreshtha
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 graham@bigpond.com wrote: On 21 May 2014, at 5:41 pm, Devarshi Kulshreshtha devarshi.bluec...@gmail.com wrote: am working on below scenario: 1.

Re: How to generate .cer file in cocoa

2014-05-21 Thread Jens Alfke
On May 21, 2014, at 12:41 AM, Devarshi Kulshreshtha devarshi.bluec...@gmail.com wrote: Is there any method to generate .cer file in cocoa? Not unless you already have a SecCertificateRef (which is just a wrapper around the same data that goes in a .cer file.) Generating X.509 certificates

Re: How to generate .cer file in cocoa

2014-05-21 Thread Jens Alfke
On May 21, 2014, at 1:04 AM, Graham Cox graham@bigpond.com wrote: 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

Re: How to generate .cer file in cocoa

2014-05-21 Thread Roland King
And Quinn has given the official can't do that on devforums. I rarely say embed openssl but .. you if this is the cross platform you need, embed openssl. On 21 May, 2014, at 9:54 pm, Jens Alfke j...@mooseyard.com wrote: On May 21, 2014, at 1:04 AM, Graham Cox graham@bigpond.com