Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-06 Thread Martin v. Loewis
> My next task is how to find out at the client side, that the server > certificate is a properly signed one. As Heikki says, you'll need Python 2.6 for that. You'll probably need to extend your transport implementation. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-06 Thread Heikki Toivonen
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

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-05 Thread News123
Hi Martin, Thanks a lot for your reply. It helped me to find the correct solution. Unfortunaltely xmlrpclib.ServerProxy does not allow a host tuple, but just a uri. So the simplest solution, that I found is to create a custom transport import xmlrpclib class SafeTransportWithCert(xmlrpclib.Sa

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-04 Thread Martin v. Loewis
> I can do xmlrpc over ssl WITHOUT certificates with following code: > > import xmlrpclib > server_url = 'https://myserver' > server = xmlrpclib.Server(server_url); > > > and I can perform a https get request WITH certificates with below snippet: > > import httplib > conn = httplib.HTTPSConnect

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-04 Thread News123
Hi Massimo, I'm still a litle confused: My setup: server host: apache, php with an xmlrpc server interface. no python installed. multiple client hosts (linux / windows only default python installed) --- an existi

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-04 Thread mdipierro
If it is a client problem than web2py will be on help. If your server is written already you may be able to use it with the ssl cherrypy wsgi server (the one that web2py uses) and you do not need web2py at all. Massimo On Jan 4, 3:38 am, News123 wrote: > Thanks for your answer. > > I'll look at

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-04 Thread News123
Thanks for your answer. I'll look at web2py. However web2py seems to address the xmlrpc server (at least in your example). The xmlrpc server application exists alerady and requires a client certificate. The client example doesn't seem to be using a certificate. So I'll be reading a little into

Re: python xmlrpc client with ssl client certificates and standard modules

2010-01-04 Thread mdipierro
xmlrpc acts at the application layer and ssl at the transport layer so they can inter operate easily as long as you do not use the certificate to authenticate the client but only validate the server and encrypt data (which you can also do but it is more complicated) One option for you is to use we

python xmlrpc client with ssl client certificates and standard modules

2010-01-03 Thread News123
Hi, I was googling fot quite some time and was not really succesfull. I found one solution, which I will try soon. It is http://www.cs.technion.ac.il/~danken/xmlrpc-ssl.html (found in http://hamakor.org.il/pipermail/python-il/2008-February/29.html ) This will probably work, but it requires t