summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/secure/makecerts.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceGrid/secure/makecerts.py')
-rwxr-xr-xcpp/demo/IceGrid/secure/makecerts.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/demo/IceGrid/secure/makecerts.py b/cpp/demo/IceGrid/secure/makecerts.py
index 428934e38f1..d7d969a8f94 100755
--- a/cpp/demo/IceGrid/secure/makecerts.py
+++ b/cpp/demo/IceGrid/secure/makecerts.py
@@ -14,14 +14,15 @@ iceca = "iceca"
def runIceca(args):
os.environ['PYTHONUNBUFFERED'] = '1'
- if os.system(iceca + " " + args):
+ command = 'python "%s" %s' % (iceca, args)
+ if os.system(command):
sys.exit(1)
def createCertificate(filename, cn):
print "======= Creating " + filename + " certificate ======="
- runIceca("request --no-password --overwrite %s \"%s\"" % (filename, cn))
+ runIceca('request --no-password --overwrite "%s" "%s"' % (filename, cn))
runIceca("sign --in %s_req.pem --out %s_cert.pem" % (filename, filename))
os.remove("%s_req.pem" % filename)