Hi J, I am also facing the same problem. Were you able to trace the problem. Also I have another information to share. I created a private key using openssl tool. Using this private key, I created the public key. The strange part is, though the private key is read properly into RSA structure, the public key reading gives me this error message.
Any help would be greatly appreciated. thanks in advance Vignesh J <[EMAIL PROTECTED]> Sent by: To: [EMAIL PROTECTED] owner-openssl-users@o cc: [EMAIL PROTECTED] penssl.org Subject: d2i_ASN1_UINTEGER error from d2i_RSAPublicKey 07/24/02 10:27 PM Please respond to openssl-users Hi Folks, I hope someone could help me with this. I am receiving a public key from a server on a windows machine, and I am trying to import it using d2i_RSAPublicKey. This fails with the following error: "error:0D118071:asn1 encoding routines:d2i_ASN1_UINTEGER:expecting an integer" Does anyone know what the problem could be? I am reading the public key as unsigned chars from the server through the socket api. I have also tried reading the key from a file that was previously created by dumping the chars into that file. I am assuming this could be the reason why I am having the other issues that I had posted earlier, regarding the session key encryption using the public key. Any help would greatly appreciated. Thanx in advance!! ===== - J | -> [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]