projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
If no path is provided use current directory
[cascardo/ipsilon.git]
/
ipsilon
/
tools
/
certs.py
diff --git
a/ipsilon/tools/certs.py
b/ipsilon/tools/certs.py
index
dc08e08
..
a4b0f11
100755
(executable)
--- a/
ipsilon/tools/certs.py
+++ b/
ipsilon/tools/certs.py
@@
-26,9
+26,12
@@
class Certificate(object):
def __init__(self, path=None):
self.subject = None
- self.path = path
self.key = None
self.cert = None
+ if path:
+ self.path = path
+ else:
+ self.path = os.getcwd()
def generate(self, prefix, subject):
self.key = '%s.key' % prefix