> You haven't read the FAQ:
> http://www.openssl.org/support/faq.html#13
I did it, but i forgot :-)
Now it works, thanks a lot.
--
Marco Donati
Context Security - Software
P.zza Liberazione, 25 - 20013 Magenta (MI)
Phone: +
Marco Donati wrote:
>
> I wrote the following simple code to read a private key that's inside a
> PKCS12 object:
>
[stuff deleted]
>
> the PKCS12_parse always fail reporting
> PKCS12_F_PKCS12_PARSE,PKCS12_R_MAC_VERIFY_FAILURE.
>
> Stepping inside it I've seen that PKCS12_verify_mac fails repor
I wrote the following simple code to read a private key that's inside a
PKCS12 object:
FILE * fp ;
PKCS12* p12=NULL;
EVP_PKEY *prkey=NULL;
if ( (fp = fopen ( p12file, "rb" )) == NULL ) {
return 0
}
d2i_PKCS12_fp(fp, &p12);
if (!PKCS12_parse(p12, pass, &prkey, NULL,NULL)