Re: certificate-based authentication (Martin v. L?wis)

2005-08-19 Thread Martin v. Löwis
 I'm using  Python version 2.2 - the SafeTransport class in it's xmlrpclib
 doesn't  have a 'get_host_info' method.  Which version were you referring
 to?

I was looking at the HEAD revision in CVS. That feature was apparently
released with Python 2.3. Still, httplib supports client certificates
since Python 1.6, so you should be able to extend SafeTransport even in
2.2.

Regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: certificate-based authentication (Martin v. L?wis)

2005-08-18 Thread Dennis . Hoffman
 I have been using XML-RPC to get information from one of our remote
 servers.  To improve security, the server now has a certificate
installed,
 and when I try to access it, I get an 'Unauthorized' exception.  Is
there
 an xmlrpclib module that supports (client-side) certificate-based
 authentication?  If so, where can I get it, and what  is involved in
doing
 the  authentication? If not, what are my options?

 The standard xmlrpclib should work fine. You need to inherit from the
 SafeTransport class, overriding get_host_info to return the x509_info.
 You then pass an instance of your transport to the ServerProxy.

 HTH,
 Martin

I'm using  Python version 2.2 - the SafeTransport class in it's xmlrpclib
doesn't  have a 'get_host_info' method.  Which version were you referring
to?
thanks
Dennis

-- 
http://mail.python.org/mailman/listinfo/python-list