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

2011-02-18 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of David Henry > Sent: Friday, 18 February, 2011 11:51 > Solved. Thanks, Mounir. Changing my PEM_read_bio_RSA_PublicKey() > to PEM_read_bio_RSA_PUBKEY() did the trick. I don't understand why > there are two of these, but I'm new

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

2011-02-18 Thread David Henry
Solved. Thanks, Mounir. Changing my PEM_read_bio_RSA_PublicKey() to PEM_read_bio_RSA_PUBKEY() did the trick. I don't understand why there are two of these, but I'm new to OpenSSL, so I won't complain about that which I don't sufficiently understand. Dave On Fri, Feb 18, 2011 at 10:15 AM, David He

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

2011-02-18 Thread David Henry
Thanks for the response, but adding the -pubout switch did not change anything. Actually, I had already been using it, but forgot to type it in my email. Just to make sure though, I recreated the keys and tried again with: > openssl genrsa -out rsaprivatekey.pem 2048 > openssl rsa -in rsaprivateke

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

2011-02-17 Thread Mounir IDRASSI
Hi, Your command line that create the public key is missing the -pubout switch that tells the rsa utility to output a public key. So, this command should look like : openssl rsa -in rsaprivatekey.pem -out rsapublickey.pem -pubout . Without it, it will just output the private key as is. More