[Gajim-devel] Re : Re : Re : Re : PKCS12 with password
Yann Leboulanger
asterix at lagaule.org
Tue Jul 26 22:45:02 CEST 2011
On 07/26/2011 10:33 PM, Saleem Edah-Tally wrote:
>
>
>> Could you try that in a console:
>> import OpenSSL.crypto
>> OpenSSL.crypto.load_pkcs12(open(CERT_PATH).read(), '')
>
>> if that doesn't work I'll call it without the second argument
>
> Here's the result :
>
> *******************************************************************************************
>
> Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import OpenSSL.crypto
>>>> OpenSSL.crypto.load_pkcs12(open('/home/user/xmpp_lab_test.p12').read(), '')
> <PKCS12 object at 0x7f48788485a0>
> *******************************************************************************************
>
>
> So opening with an empty 'string' works fine. So the password argument can
> default to '' rather than None.
Perfect, it's commited to trunk.
Thanks for the tests!
You can use it by doing:
hg revert -a
hg pull -u
./launch.sh
--
Yann
More information about the Gajim-devel
mailing list