Tataroz T. wrote:
>
> Hello all...
> I try to get private key and certificates from p12
> file that generate from NS certificate server but I
> have a problem. I can't get priKey and certs from
> function PKCS12_parse(). When I call this function,
> It will return '0'. Is that mean there're something
> wrong? Please see my code and screen output.My output
> file (test.p12) has zero length.
>
[code deleted]
If you called ERR_print_errors_fp(stderr) after the failure of
PKCS12_parse() it would probably complain about an unkown PBE algorithm.
This is because you need to initialiase a table of algorithms so they
are visible to things like PKCS#12.
Try calling SSLeay_add_all_algorithms() first.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]