On Thu, May 16, 2002 at 04:19:08PM +0200, Lugeon Blaise wrote:
> Hi everybody,
> 
> I implemented a client-server application with openssl version 0.9.6c
> (engine) and everything works fine on Win32 platform.
> 
> I try to do the same on tru64 and I get the following error during the
> accept:
> 
> error:00000005:lib(0):func(0):bad asn1 object header

Please be more detailed about what works and what not:
the client is running Win32/Tru64; the server is running Win32/Tru64...

> I use a client certificate in the DER format, a key in the PEM format and a
> CA file in the PEM format. If I use a client certificate in the PEM format,
> everything works fine. However the certificate in the DER format is correct
> (I checked it, I can read it with any function of openSSL).
> 
> When I use the s_server with the debug option here is the last lines that
> appear:
> 
> write to 40076300 [140078000] (18 bytes => 18 (0x12))
> 0000 - 16 03 00 00 0d 0d 00 00-05 02 01 02 00 00 0e      ...............
> 0012 - <SPACES/NULS>
> read from 40076300 [140083D80] (5 bytes => 0 (0x0))
> ERROR
> shutting down SSL
> CONNECTION CLOSED

Please fire up ssldump to support your analysis.

Coming back to the error message:
> error:00000005:lib(0):func(0):bad asn1 object header

Did you intialize the error functions?

>From the FAQ:
6. I just get a load of numbers for the error output, what do they mean?

The actual format is described in the ERR_print_errors() manual page.
You should call the function ERR_load_crypto_strings() before hand and the
message will be output in text form. If you can't do this (for example it is
a pre-compiled binary) you can use the errstr utility on the error code itself
(the hex digits after the second colon).

I however find it strange, that func(0) indicates that no function is
recorded...

The CHANGES file does not indicate something significant, but you should
upgrade to 0.9.6d anyway. Maybe the problem is already been fixed.

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to