On Wed, 2008-03-12 09:05:17 -0700, sf.techguy@gmail.com wrote:
[..]
Tried the command above on the 1st of 5 crt files (openssl pkcs12 -in filename.crt -out filename.pem), and am getting this error:
19319:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1007: 19319:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:305:Type=PKCS12
Any ideas why that might be happening?
It seems your files do not contain a PKCS#12 structure (containing the key and the whole certificate chain). I should have recognize this by the fact you have one file for each certificate. Sorry.
Maybe you should give the x509 openssl command a try:
openssl x509 -in filename.crt -inform DES -out filename.pem
HTH,
Ludolf