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

Dennis.Hoffman at seagate.com Dennis.Hoffman at seagate.com
Thu Aug 18 15:44:45 EDT 2005


>> 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




More information about the Python-list mailing list