v.licheni.net
/
stack
/
cam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed issue #1 - cam library path now has precedence
[stack/cam.git]
/
lib
/
gen.py
diff --git
a/lib/gen.py
b/lib/gen.py
index
526e52f
..
42795fe
100644
(file)
--- a/
lib/gen.py
+++ b/
lib/gen.py
@@
-33,6
+33,10
@@
def gen(tag):
ans = raw_input('This certificate seems to exist already (in %s).\nAre you really sure that you want to re-create it? [y/N] ' % crt_file)
if not ans or ans[0].lower() != 'y':
sys.exit(0)
ans = raw_input('This certificate seems to exist already (in %s).\nAre you really sure that you want to re-create it? [y/N] ' % crt_file)
if not ans or ans[0].lower() != 'y':
sys.exit(0)
+ print 'Revoking previous certificate...'
+ openssl('ca', '-config', conf_file,
+ '-revoke', public_crt_file)
+
# create custom config file
template(conf_file,
# create custom config file
template(conf_file,