[openssl.org #1034] bug report (and fix): PKCS12_parse returns incorrect cert
[firstname.lastname@example.org - Tue Apr 5 14:49:40 2005]:
> Hi. I've come across an issue where certain PKCS#12 files are[/color]
> parsed by PKCS12_parse().
> The problem seems to be when the Signing cert appears twice in the PKCS12
> file (or something - not 100% sure).
> Anyway - looking at crypto/pkcs12/p12_kiss.c, it appears that the[/color]
> parse_bag() will always return the last cert in the file, not necessarily
> the cert which matches the Private Key.
Could you send me either an unimportant PKCS#12 file (and password) that
does this or the output of:
openssl pkcs12 -in file.p12 -out file.pem
You can snip the private key contents from that output: I just want to
know what the bag attributes are and their order.
OpenSSL Project [url]http://www.openssl.org[/url]
Development Mailing List [email]email@example.com[/email]
Automated List Manager [email]firstname.lastname@example.org[/email]