summaryrefslogtreecommitdiff
path: root/certs/makecerts.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-02-11 21:00:40 +0100
committerJose <jose@zeroc.com>2013-02-11 21:00:40 +0100
commitb1e9ba99c6bd673cc568a1c3e58f8ebc0947453b (patch)
tree7874070f1de4e5abf46225a4d9f6d90ab5edf482 /certs/makecerts.py
parentBuild system typos (diff)
downloadice-b1e9ba99c6bd673cc568a1c3e58f8ebc0947453b.tar.bz2
ice-b1e9ba99c6bd673cc568a1c3e58f8ebc0947453b.tar.xz
ice-b1e9ba99c6bd673cc568a1c3e58f8ebc0947453b.zip
makecerts.py fixes:
* Don't remove cacert.der , it is required by Ice Touch. * Fixed bogus elif
Diffstat (limited to 'certs/makecerts.py')
-rwxr-xr-xcerts/makecerts.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/certs/makecerts.py b/certs/makecerts.py
index 7d727c99162..5eb3acdddaa 100755
--- a/certs/makecerts.py
+++ b/certs/makecerts.py
@@ -350,17 +350,13 @@ if (lang == "java" or lang == None) and (force or not os.path.exists(truststore)
if os.path.exists(truststore):
os.remove(truststore)
- tmpFile = os.path.join(certs, "cacert.der")
- cmd = "openssl x509 -in " + caCert + " -outform DER -out " + tmpFile
- if debug:
- print "[debug]", cmd
- os.system(cmd)
- cmd = "keytool -import -alias cacert -file " + tmpFile + " -keystore " + truststore + \
+ cacert = os.path.join(certs, "cacert.der")
+
+ cmd = "keytool -import -alias cacert -file " + cacert + " -keystore " + truststore + \
" -storepass password -noprompt"
if debug:
print "[debug]", cmd
os.system(cmd)
- os.remove(tmpFile)
if os.path.exists("certs.bks"):
os.remove("certs.bks")
@@ -389,7 +385,7 @@ if (lang == "java" or lang == None) and (force or not os.path.exists(truststore)
print " After download copy the JAR to $JAVA_HOME/lib/ext where JAVA_HOME points to your JRE"
print " and run this script again."
print ""
- elif: e.output.find("java.security.InvalidKeyException: Illegal key size") != -1:
+ elif e.output.find("java.security.InvalidKeyException: Illegal key size") != -1:
print ""
print "WARNING: You need to install Java Cryptography Extension (JCE) Unlimited Strength."
print " You can download it from Additional Resources section in Orcale Java Download page at:"