diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-04-24 14:16:15 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-04-24 14:16:15 -0700 |
commit | 943a48fc5c0a59b892eb746073c71b8dd88815e7 (patch) | |
tree | 421cfedbc60603d02e0b314d9204e9f85dd781c5 /cpp/demo/IceGrid/secure/makecerts.py | |
parent | minor fix to IcePHP getLogger (diff) | |
download | ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.bz2 ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.xz ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.zip |
python 3 support
Diffstat (limited to 'cpp/demo/IceGrid/secure/makecerts.py')
-rwxr-xr-x | cpp/demo/IceGrid/secure/makecerts.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/demo/IceGrid/secure/makecerts.py b/cpp/demo/IceGrid/secure/makecerts.py index 6d49467d33e..0b44a1f9ba9 100755 --- a/cpp/demo/IceGrid/secure/makecerts.py +++ b/cpp/demo/IceGrid/secure/makecerts.py @@ -18,18 +18,18 @@ def runIceca(args): def createCertificate(filename, cn): - print "======= Creating " + filename + " certificate =======" + print("======= Creating " + filename + " certificate =======") 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 + print("") + print("") cwd = os.getcwd() if not os.path.exists("certs") or os.path.basename(cwd) != "secure": - print "You must run this script from the secure demo directory" + print("You must run this script from the secure demo directory") sys.exit(1) os.environ["ICE_CA_HOME"] = os.path.abspath("certs") @@ -39,10 +39,10 @@ os.chdir("certs") # # First, create the certificate authority. # -print "======= Creating Certificate Authority =======" +print("======= Creating Certificate Authority =======") runIceca("init --overwrite --no-password") -print -print +print("") +print("") createCertificate("master", "Master") createCertificate("slave", "Slave") @@ -50,7 +50,7 @@ createCertificate("node", "Node") createCertificate("glacier2", "Glacier2") createCertificate("server", "Server") -print "======= Creating Java Key Store =======" +print("======= Creating Java Key Store =======") try: os.remove("certs.jks") |