generate a random number of 46
bytes and public_key_encrypt all this stuff. The problem is as I send
this packet to server, I get a "tls rsa encrypted value length is
wrong".

An RSA key that is "n" bits long will output an encrypted buffer that is "n" bits long. Are you padding your data out to the right size?

The code in crypto/apps is a really good way to learn how to use the OpenSSL library. Learn the commands, find one that does what you want, and read the source for it.

        /r$

--
Rich Salz, Chief Security Architect
DataPower Technology                           http://www.datapower.com
XS40 XML Security Gateway   http://www.datapower.com/products/xs40.html
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to