Hi,
I'm having a problem with generation of PKCS7 certificates.
What I've done is:
openssl req -new -keyout newreq.pem -out newreq.pem -days 365
openssl ca -policy policy_anything -out newcert.pem -infiles newreq.pem
openssl pkcs12 -in newcert.pem -inkey newreq.pem -certfile ${CATOP}/$CACERT -out
newcert.p12 -export -name "My Certificate"
And this was ok, no problems.
When I perform a:
openssl pkcs7 -inform PEM -in newcert.pem -print_certs
I receive the folloiwng errors:
unable to load PKCS7 object
1384:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:.cryptoas
n1tasn_dec.c:946:
1384:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 err
or:.cryptoasn1tasn_dec.c:628:
1384:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_D2I:nested asn1 error:.
cryptoasn1tasn_dec.c:566:Field=type, Type=PKCS7
1384:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:.cryptopempem_oth
.c:82:
What am I doing wrong?
openssl version is
OpenSSL 0.9.7d 17 Mar 2004
running under windows xp sp1
Thanks in advance
--
Andrea
ICQ:5459894
Registered Linux User #24583
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]