Hi all,

        How do I serialize an RSA private key into DER?

        I tried by using the i2d_RSAPrivateKey(...) but it crashed.

        My code snippet:

        -----------
        RSA *rsa = RSA_generate_key(1024, 0x10001, NULL, NULL);

        unsigned char der[10000]; // ought to be enough?

        i2d_RSAPrivateKey(rsa, (unsigned char**)&der); // crashes here
        -----------

        Thanks

ET.

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

Reply via email to