I am having a bit of a problem generating a set of new keys.

I have code that works just fine when using a pair of imported keys
from a file generated from the openssl commandline.

However when I try and use RSA_generate_key, I can obtain the public
and private keypair, they validate using SSL_CTX_check_private_key,
yet, they cause SSL_connect on the client to complain

error:0D07209B:asn1 encoding routines:ASN1_get_object:too long

I have the code for generating the keys up for scrutiny at

http://pastebin.com/m2dc98526

Any suggestions gratefully appreciated.

Michael
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to