[Gajim-devel] PKCS12 with password

2011-07-25 Thread nmset
Hello, Gajim is excellent for client authentication through credentials stored in a PKCS12 container. It rejects however a PKCS12 file protected by a password. tlsnb_nb.py opens the PKCS12 file with : p12 = OpenSSL.crypto.load_pkcs12(open(conn.client_cert).read()) It may also open a p

Re: [Gajim-devel] PKCS12 with password

2011-07-25 Thread Yann Leboulanger
On 07/25/2011 02:10 PM, nmset wrote: Hello, Gajim is excellent for client authentication through credentials stored in a PKCS12 container. It rejects however a PKCS12 file protected by a password. tlsnb_nb.py opens the PKCS12 file with : p12 = OpenSSL.crypto.load_pkcs12(open(conn.cli

[Gajim-devel] Re : PKCS12 with password

2011-07-25 Thread Saleem Edah-Tally
Here's the CLI output running gajim in non-verbose, with a PKCS12 password protected container : * 16:01:50 (W) gajim.c.x.tls_nb Unable to load client pkcs12 certificate from file /home/user/xmpp_lab_set_pwd.p1

Re: [Gajim-devel] Re : PKCS12 with password

2011-07-25 Thread Yann Leboulanger
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 becau

[Gajim-devel] Re : Re : PKCS12 with password

2011-07-25 Thread Saleem Edah-Tally
>>> import OpenSSL.crypto >>>OpenSSL.crypto.load_pkcs12(open('/home/user/xmpp_lab_set_pwd.p12').read()) >>> >>> >>> Traceback (most recent call last): File "", line 1, in

[Gajim-devel] Re : PKCS12 with password

2011-07-25 Thread Saleem Edah-Tally
- Message d'origine De : Yann Leboulanger À : nmset Cc : Gajim Devel Envoyé le : Lun 25 juillet 2011, 15h 17min 57s Objet : Re: [Gajim-devel] PKCS12 with password >Connection object should try to open the >certificat, if that fails, asks a password, before trying to connect. One s