python xmlrpc client with ssl client certificates and standard modules

Heikki Toivonen hjtoi-better-remove-before-reply at comcast.net
Wed Jan 6 13:34:11 EST 2010


News123 wrote:
> This will probably work, but it requires the module M2Crypto.
> 
> In order to avoid installing M2Crypto an all hosts that want to run the
> script I wondered, whether there is no other solution.
> 
> I can do xmlrpc over ssl WITHOUT certificates with following code:
[...]

Please note that if you just use the stdlib it is not secure out of the
box. With Python 2.6 and the ssl module you can make it so, but it
requires some work on your part. See for example
http://www.heikkitoivonen.net/blog/2008/10/14/ssl-in-python-26/

-- 
  Heikki Toivonen - http://heikkitoivonen.net



More information about the Python-list mailing list