OpenSSL assistance

2010-08-11 Thread Sashi Dutt
Hello,

I was wondering if any of you guys ran into the below error and provide some
guidance/assistance?

8980:error:23076071:PKCS12 routines:PKCS12_parse:mac verify
failure:p12_kiss.c:121:

code

p12 = d2i_PKCS12_fp(fp, NULL);
  if (!PKCS12_parse(p12, password, pkey, x509, ca))

/code

Basically, I am trying to read in a string, sign it and return its signature
value.

Thanks,

Sashi


Re: OpenSSL assistance

2010-08-11 Thread Mounir IDRASSI

 Hi,

This kind of error (MAC verification failure) usually indicates that the 
given password is incorrect.
Check your password in the code, maybe there is some encoding problems 
(ASCII vs UTF8).
You can also try to open your pkcs#12 file using another application, 
like Firefox, to see if it's able to open it using this password.


Cheers,
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr

On 8/11/2010 5:14 PM, Sashi Dutt wrote:

Hello,

I was wondering if any of you guys ran into the below error and provide some
guidance/assistance?

8980:error:23076071:PKCS12 routines:PKCS12_parse:mac verify
failure:p12_kiss.c:121:

code

p12 = d2i_PKCS12_fp(fp, NULL);
   if (!PKCS12_parse(p12, password,pkey,x509,ca))

/code

Basically, I am trying to read in a string, sign it and return its signature
value.

Thanks,

Sashi



__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org