Re: PKCS12_parse / PKCS12_create issue

2011-02-02 Thread Muhammed Shafeek
Hi Dave, Thank you for the detailed explanation and the suggestions. It really helped to solve the issue. I did use openssl tool to avoid the problem. I tried clearing the keyid and friendly name in cert using x509__set1 fn's before passing it to PKCS12_create and it also worked fine. I was no

RE: PKCS12_parse / PKCS12_create issue

2011-01-31 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Muhammed Shafeek > Sent: Wednesday, 26 January, 2011 12:30 > I've a program that extracts private key and cert from the input > pfx file loaded into the system > and then create a p12 file out of this private key and cer

PKCS12_parse / PKCS12_create issue

2011-01-26 Thread Muhammed Shafeek
Hi, I've a program that extracts private key and cert from the input pfx file loaded into the system and then create a p12 file out of this private key and cert using a different password to add it to a local keystore. /*code to extract key*/ p12Key = d2i_PKCS12_fp(fp, NULL); PKCS12_parse(p12Key,