Sorry for my English. 
I have a simple program for generating RSA key with writting it in 
DER format. But key converted with i2d_RSAPrivateKey function to 
DER format is invalid. 
openssl rsa -infrom der -in privkey.der reports:

read RSA key
unable to load key
8317:error:0D09D082:asn1 encoding 
routines:d2i_RSAPrivateKey:parsing:d2i_r_pr.c:116:

The code and generated key is in attachment.
Compiled on RedHat 6.1 Linux with OpenSSL 0.9.5a

Where did I a mistake please?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to