Add function to import a cert from a file
[cascardo/ipsilon.git] / ipsilon / tools / certs.py
index d11ee54..ee07c74 100644 (file)
@@ -42,6 +42,10 @@ class Certificate(object):
         proc = Popen(command)
         proc.wait()
 
+    def import_cert(self, certfile, keyfile):
+        self.cert = certfile
+        self.key = keyfile
+
     def get_cert(self):
         if not self.cert:
             raise ValueError('Certificate unavailable')