Re: RSA public/private keys only work when created programatically.

2011-02-18 Thread David Henry
unction >> PEM_write_bio_RSA_PUBKEY and not PEM_write_bio_RSAPubicKey. So, if you want >> your program to be compatible with its output, then you should use >> PEM_write_bio_RSA_PUBKEY and PEM_read_bio_RSA_PUBKEY for saving/loading >> public key files. >> >> I h

Re: RSA public/private keys only work when created programatically.

2011-02-18 Thread David Henry
you should use > PEM_write_bio_RSA_PUBKEY and PEM_read_bio_RSA_PUBKEY for saving/loading > public key files. > > I hope this will help, > -- > Mounir IDRASSI > IDRIX > http://www.idrix.fr > > > On 2/18/2011 4:59 AM, David Henry wrote: > >> I've written a bare

RSA public/private keys only work when created programatically.

2011-02-17 Thread David Henry
I've written a bare bones enveloping example that takes a string, seals it in an envelope, and then goes about opening it. Everything works just fine if I generate my RSA keys programatically. Unfortunately, it does not work if I encrypt the session keys with an RSA public key that was created on t