Thanks. I looked at the asn1parse output and found
that d2i_RSAPrivateKey() expected an INTEGER for the
version number in the ASN1.DER file but it read
something else so it exited.

--- Dr S N Henson <[EMAIL PROTECTED]> wrote:
> Fiel Cabral wrote:
> > 
> > I'm writing a program that uses openssl to read
> the
> > private key from a ASN1.DER encoded file. The
> openssl
> > API outputs the following:
> > 
> > 17752:error:0D080071::lib(13) :func(128)
> > :reason(113):a_int.c:191:
> > 17752:error:0D09D082::lib(13) :func(157)
> > :reason(130):d2i_r_pr.c:124:
> > 
> > I'm using the load_key() function from
> > openssl/apps/x509.c but I got this error.
> > I'm sure that my file is valid. Can anyone give me
> > some hints?
> > 
> 
> Depends on the format of the private key. You might
> need to use a
> different function or be unable to use it at all if
> its an undocumented
> proprietary format (Oracle webserver is one example
> that).
> 
> See what:
> 
> openssl asn1parse -inform DER -in key.der
> 
> produces.
> 
> Steve.
> -- 
> Dr Stephen N. Henson.  
> http://www.drh-consultancy.demon.co.uk/
> Personal Email: [EMAIL PROTECTED] 
> Senior crypto engineer, Celo Communications:
> http://www.celocom.com/
> Core developer of the   OpenSSL project:
> http://www.openssl.org/
> Business Email: [EMAIL PROTECTED] PGP key: via
> homepage.
> 
>
______________________________________________________________________
> OpenSSL Project                                
> http://www.openssl.org
> User Support Mailing List                   
> [EMAIL PROTECTED]
> Automated List Manager                          
[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to