summaryrefslogtreecommitdiffstats
path: root/overlord
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-26 13:19:04 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-26 13:19:04 -0400
commit259c031ad22e9b451fb82af506d5680521ec22ee (patch)
tree4a6e8bdfadda909f6f36e40e0fdd9c553abd12db /overlord
parent2d2db746fa88a97dacd81db1a3b9840d52be1557 (diff)
downloadthird_party-func-259c031ad22e9b451fb82af506d5680521ec22ee.tar.gz
third_party-func-259c031ad22e9b451fb82af506d5680521ec22ee.tar.xz
third_party-func-259c031ad22e9b451fb82af506d5680521ec22ee.zip
add a simple FuncServer class that sets up most of the pki related bits
to reasonable defaults. No idea if this actually works at the moment.
Diffstat (limited to 'overlord')
-rw-r--r--overlord/sslclient.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/overlord/sslclient.py b/overlord/sslclient.py
index 9439c4a..928d6bb 100644
--- a/overlord/sslclient.py
+++ b/overlord/sslclient.py
@@ -35,10 +35,25 @@ class SSLXMLRPCServerProxy(xmlrpclib.ServerProxy):
xmlrpclib.ServerProxy.__init__(self, uri, SSL_Transport(ssl_context=self.ctx, timeout=timeout))
+class FuncServer(SSLXMLRPCServerProxy):
+ def __init__(self, uri):
+ self.pem = "/etc/pki/func/slave.pem"
+ self.crt = "/etc/pki/func/slave.cert"
+ self.ca = "/etc/pki/func/ca/funcmaster.crt"
+
+ SSLXMLRPCServerProxy.__init__(self, uri,
+ self.pem,
+ self.crt,
+ self.ca)
+
if __name__ == "__main__":
- s = SSLXMLRPCServerProxy('https://localhost:51234/', '/etc/pki/func/slave.pem', '/etc/pki/func/slave.crt', '/etc/pki/func/ca/funcmaster.crt')
+ s = SSLXMLRPCServerProxy('https://localhost:51234/', '/etc/pki/func/slave.pem', '/etc/pki/func/slave.cert', '/etc/pki/func/ca/funcmaster.crt')
f = s.ping(1, 2)
print f
+
+
+
+
+
- \ No newline at end of file