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]

Reply via email to