certificate-based authentication

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?

thanks

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


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

2005-08-19 Thread Dennis . Hoffman
> 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.


Ok - I have upgraded to the newer version of xmlrpclib that has the
'get_host_info' method.  I have created a new class (inherited from the
SafeTransport class), and overriden the get_host_info method.  So my
question now is where does the the x509_info come from?  Is that the
key/certificate comming back from the server?  If so, how do I get that?
If not, then where does it come from?  You must excuse my ignorance, as
this is all fairly new to me, and am still in the learning phase.
Thanks
Dennis


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