[Gajim-devel] Re : PKCS12 with password

Yann Leboulanger asterix at lagaule.org
Mon Jul 25 17:06:35 CEST 2011

the only thing I see is that:

Unable to load client pkcs12 certificate from file 
/home/user/xmpp_lab_set_pwd.p12: ([('PKCS12 routines', 'PKCS12_parse', 
'mac verify failure')],) ... Is it a valid PKCS12 cert?

which isn't very explicit why it fails to open the cert. We don't know 
if it's because it's encrypted.

could you try that in a python console:
 >>> import OpenSSL.crypto
 >>> OpenSSL.crypto.load_pkcs12(open('FULL_PATH_TO_YOUR_CERT').read())

what does that print?

The only other solution I see is: try to open cert, if that fails for 
any reason, ask for a passphrase. That's not very nice, but why not ...

More information about the Gajim-devel mailing list