Hi All,
I'm resending the mail with more details with sample pfx file
key and cert extracted using PKCS12_parse() fn is as follows. Plz note the
localKeyID field in cert and key.
**
MAC verified OK
Bag Attributes
localKeyID: 01 00 00 00
friendlyName: mysrt
Hi All,
The following code is to extract cert from a pfx file.
p12Cert = d2i_PKCS12_fp(fp, NULL); //fp points to a .pfx file.
PKCS12_parse(p12Cert, pass, NULL, oCert, NULL);
Here the resultant oCert has multiple localKeyID as shown below.
MAC verified OK
Bag Attributes
localKeyID: 01 00 00