diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-03-16 13:16:09 -0400 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-03-16 13:16:09 -0400 |
commit | 2020e0fd3317382243a87d139b18b88efde6251c (patch) | |
tree | 74bca4eb7b846838dc779581b27d8ff7028b6b9f /cpp/demo/IceGrid/secure/makecerts.py | |
parent | Fixed makecerts.py check for toplevel (diff) | |
download | ice-2020e0fd3317382243a87d139b18b88efde6251c.tar.bz2 ice-2020e0fd3317382243a87d139b18b88efde6251c.tar.xz ice-2020e0fd3317382243a87d139b18b88efde6251c.zip |
Bug 3873 - IceGrid/secure fails on Solaris x64
Diffstat (limited to 'cpp/demo/IceGrid/secure/makecerts.py')
-rwxr-xr-x | cpp/demo/IceGrid/secure/makecerts.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/cpp/demo/IceGrid/secure/makecerts.py b/cpp/demo/IceGrid/secure/makecerts.py index 5af14affc19..58b23d0125e 100755 --- a/cpp/demo/IceGrid/secure/makecerts.py +++ b/cpp/demo/IceGrid/secure/makecerts.py @@ -10,22 +10,29 @@ import os, sys, shutil, glob -def iceca(args): +iceca = "iceca" + +def runIceca(args): os.environ['PYTHONUNBUFFERED'] = '1' - if os.system("iceca " + args): + print iceca + if os.system(iceca + " " + args): sys.exit(1) def createCertificate(filename, cn): print "======= Creating " + filename + " certificate =======" - iceca("request --no-password --overwrite %s \"%s\"" % (filename, cn)) - iceca("sign --in %s_req.pem --out %s_cert.pem" % (filename, filename)) + 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) print print +for x in sys.argv[1:]: + if x[0:7] == "--iceca": + iceca = x[8:] + cwd = os.getcwd() if not os.path.exists("certs") or os.path.basename(cwd) != "secure": @@ -40,7 +47,7 @@ os.chdir("certs") # First, create the certificate authority. # print "======= Creating Certificate Authority =======" -iceca("init --overwrite --no-password") +runIceca("init --overwrite --no-password") print print @@ -56,6 +63,6 @@ try: except OSError: pass -iceca("import --key-pass password --store-pass password --java ca_cert ca/db/ca_cert.pem ca/db/ca_key.pem certs.jks") +runIceca("import --key-pass password --store-pass password --java ca_cert ca/db/ca_cert.pem ca/db/ca_key.pem certs.jks") os.chdir("..") |