Re: build openssl for android

2012-09-12 Thread Jason Goldberg
For Android, check out this project as an example: https://github.com/eighthave/openssl-android They have the Android-specific Makefile configs for doing an NDK build. You could patch it with your changes and generate the .so libraries you need. On Sep 12, 2012, at 12:05 PM, Indtiny s

Re: Elliptic Curve key generation help

2012-08-14 Thread Jason Goldberg
Before you call generate_key, you need to initialize your EC_KEY with a curve: EC_GROUP *group = EC_GROUP_new_by_curve_name(curve); EC_KEY_set_group(testKey, group); For 'curve' you could use, for example, NIST P256 which is defined with the macro: NID_X9_62_prime256v1 You can then use these

Re: Read RSA PrivateKey from PEM in buffer

2012-07-29 Thread Jason Goldberg
Copy the PEM key from your buffer into a BIO instance (using BIO_write for example), and then use PEM_read_bio_RSAPrivateKey. Jason On Jul 29, 2012, at 5:52 AM, Jonas Schnelli jonas.schne...@include7.ch wrote: Hi I can read in a RSA private key from file without problems (with

Re: client server management of client SSL certificates

2012-07-29 Thread Jason Goldberg
There are Javascript libraries which range from generating key pairs to creating x509 certificates. So you could generate a keypair in the browser, then generate a certificate signing request, send the CSR to a remote API along with a challenge response, and then get back a signed x509

Re: Porting OpenSSL to andorid platform

2012-07-27 Thread Jason Goldberg
For Android, you'll need to download the Android NDK toolchain and then pull down this project: https://github.com/eighthave/openssl-android Use NDK to build the project above and that will generate the .so files you can link to. For iOS, check out: https://github.com/x2on/OpenSSL-for-iPhone