J/Crypto 3.3 DER encoded certificate cannot be read by openssl-0.9.6b

2002-04-15 Thread Pavel Tsekov

Hello, there! :)

I've checked google in this but to no avail - so I'm asking here...
Hope its not a duplicate thread.

Trying to read the attached DER form of a X509 certificate with
OpenSSL 0.9.6c and 0.9.6b yields the following error:

paveltz@MORDOR ~
$ openssl x509 -in ./1.der -inform DER
unable to load certificate
3212:error:0D06B078:asn1 encoding routines:ASN1_get_object:header too long:asn1_
lib.c:139:

I've tried to use the asn1parse utility but to no avail:
paveltz@MORDOR ~
$ openssl asn1parse -inform DER -in ./1.der -dump
0:d=0  hl=16 l=-991318795 cons: VISIBLESTRING
Error in encoding
3552:error:0D06B078:asn1 encoding routines:ASN1_get_object:header too long:asn1_
lib.c:139:

The certificate was produced by calling JCRYPTO_X509Certificate.toDER
method.


Any help ? :) Any information on how to debug further ?


1.der
Description: application/x509-ca-cert


Re: J/Crypto 3.3 DER encoded certificate cannot be read by openssl-0.9.6b

2002-04-15 Thread Pavel Tsekov

Please, ignore this post.

Monday, April 15, 2002, 4:34:58 PM, you wrote:


PT Trying to read the attached DER form of a X509 certificate with
PT OpenSSL 0.9.6c and 0.9.6b yields the following error:

__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: J/Crypto 3.3 DER encoded certificate cannot be read by openssl-0.9.6b

2002-04-15 Thread Joern Sierwald

At 16:34 15.04.2002 +0200, you wrote:
Hello, there! :)

I've checked google in this but to no avail - so I'm asking here...
Hope its not a duplicate thread.

Trying to read the attached DER form of a X509 certificate with
OpenSSL 0.9.6c and 0.9.6b yields the following error:

paveltz@MORDOR ~
$ openssl x509 -in ./1.der -inform DER
unable to load certificate
3212:error:0D06B078:asn1 encoding routines:ASN1_get_object:header too 
long:asn1_
lib.c:139:

I've tried to use the asn1parse utility but to no avail:
paveltz@MORDOR ~
$ openssl asn1parse -inform DER -in ./1.der -dump
 0:d=0  hl=16 l=-991318795 cons: VISIBLESTRING
Error in encoding
3552:error:0D06B078:asn1 encoding routines:ASN1_get_object:header too 
long:asn1_
lib.c:139:

The certificate was produced by calling JCRYPTO_X509Certificate.toDER
method.


Any help ? :) Any information on how to debug further ?

I'd debug the function that wrote the file. I have no idea what it is, but 
it is not
a DER-encoded certificate. In fact, when looking at it with a hex editor
it looks a bit like random data, I didn't run a statistical test, though.
Did you encrypt it?

Jörn

__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]