Dr. Stephen Henson wrote:

On Tue, Dec 28, 2004, sravan wrote:



<>Hello all,
sorry for repetition but the thread involving my doubt (regd load_cert() in apps.c) was abruptly ended.
i want to know if that doubt is my mis-understanding or a bug.
basically i was trying to read the certificate from a .p12 file.



There can be several certificates in a PKCS#12 file and the one loaded using that option might not necessarily be the one you want.

I'd advise converting the file using the pkcs12 utility and using the command
line options to output the appropriate certificate.

Steve.


thanks for the reply Steve.
my problem is that i need to extract the certificate from the p12 file through a program.
it is assured that the p12 file doesn't contain any other certificates(in the chain).
it contains only the one that corresponds to the private key.
anyway, as you have indicated, i can have the certificate from the pkcs12 utility and can use the certificate in my program.
But my doubt is why a NULL is being passed to PKCS12_Parse() in the load_cert() method. was it deliberate ?


Sravan


______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]

Reply via email to