i tried that way,buffer information is  not DER format.
  buffer header like this.........
  -----BEGIN RSA PRIVATE KEY-----
..................................................
   
  -----END RSA PRIVATE KEY-----
   
  Is they anyother way to resolve that problem?
  


Marek Marcola <[EMAIL PROTECTED]> wrote:
  Hello,
> 
> I have a RSA key information on buffer.i want to merge with buffer
> content to SSLcontext object.
> i am using
> SSL_CTX_use_RSAPrivateKey_ASN1(ctxr[i],keyinfo,strlen(keyinfo)) this
> SSL API.
> that API is failing . it gives following error message.
> 
> 
> 9755: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
> tag:tasn_dec.c:1282:
> 29755: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested
> asn1 error:tasn_dec.c:374:Type=RSA
> 29755: error:140B200D:SSL routines:SSL_CTX_use_RSAPrivateKey_ASN1:ASN1
> lib:ssl_rsa.c:607
> 
> 
> how to resolve the issue. please help me.........
Try d2i_RSAPrivateKey() if your buffer has RSA key in DER format.

Best regards,
-- 
Marek Marcola 

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


                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Reply via email to