This is a discussion on Trying to modify a PKCS12 file - Openssl ; Hi all, I need help about modify a p12 file. I have a pkcs12 file, without private key, and I've tried to do these steps: 1) decompress it: openssl pkcs12 -in ca-try.p12 -out ca-try.pem 2) compress it, after add other ...
Hi all,
I need help about modify a p12 file. I have a pkcs12 file, without
private key, and I've tried to do these steps:
1) decompress it:
openssl pkcs12 -in ca-try.p12 -out ca-try.pem
2) compress it, after add other crt in pem file:
openssl pkcs12 -in ca-new.pem -nokeys -nodes -out ca-NEW.p12 -password
pass:mypsw
Then I have following error:
18276:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
tag:tasn_dec.c:946:
18276:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested
asn1 error:tasn_dec.c:304:Type=PKCS12
I don't understand what it means.
There is another way to do it?
Thanks a lot.