projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add function to import a cert from a file
[cascardo/ipsilon.git]
/
ipsilon
/
tools
/
certs.py
diff --git
a/ipsilon/tools/certs.py
b/ipsilon/tools/certs.py
index
d11ee54
..
ee07c74
100644
(file)
--- a/
ipsilon/tools/certs.py
+++ b/
ipsilon/tools/certs.py
@@
-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')