Stefan Wold wrote:
>
> Hi.
>
> I currently recieved a certificate from a CA and when I try to look at
> it
> with the command
> $ openssl x509 -noout -text -in cert.crt
>
> I get this error:
> unable to load certificate
> 25224:error:0D0A2007:asn1 encoding routines:d2i_X509_CINF:expecting an
> asn1 sequence:x_cinf.c:106:address=134755306 offset=0
> 25224:error:0D09F004:asn1 encoding routines:d2i_X509:nested asn1
> error:x_x509.c:99:address=134755304 offset=2
> 25224:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1
> lib:pem_lib.c:239:
>
> And when I load the certificate in apache I get the same error in the
> error.log.
> Any suggestions on what my problem might be?
>
Since you haven't included the file its hard to be precise, it may not
actually be a certificate.
It may be a PKCS#7 structure. If you have OpenSSL 0.9.5 or later try:
openssl pkcs7 -in cert.crt -print_certs
and it should display them. You can then cut and paste the one you need.
If that doesn't help then you can try nseq in case it is a netscape
certificate sequence.
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]