Re: SecKeyGeneratePair export Public Key and OpenSSL API

2008-11-05 Thread Jacopo Mangiavacchi
ferent error: unable to load Public Key 86084:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c: 642:Expecting: PUBLIC KEY Thanks, jacopo On Nov 5, 2008, at 7:40 PM, Ken McLeod wrote: On Nov 5, 2008, at 3:41 AM, Jacopo Mangiavacchi wrote: Some more info. I obtained a pe

Re: SecKeyGeneratePair export Public Key and OpenSSL API

2008-11-05 Thread Jacopo Mangiavacchi
t command instead is correct (Modulus=B744103A06A...) I really can't understand where is my fault, I double checked the parameter that I pass to SecItemCopyMatching and SecKeyGeneratePair and of course the public key is valid by itself. I'm able to decrypt etc. with it. j Fro

SecKeyGeneratePair export Public Key and OpenSSL API

2008-11-04 Thread Jacopo Mangiavacchi
I need to export a public key generated with the SecKeyGeneratePair API and send it to a WebServices (written in PHP) that using the OpenSSL API must encrypt something using this key and return back the ciphered value to the cocoa client. In order to pass the public key NSData buffer I've t