diff options
author | Jose <jose@zeroc.com> | 2012-12-10 21:54:59 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-12-10 21:54:59 +0100 |
commit | d7a060d75dfecd9be2f63d8f9e7dc49069611fb5 (patch) | |
tree | 7b7e126ee00297a62f68ede73c9abb5391f3e3e0 /certs/makecerts.py | |
parent | Fixed ICE-5113 - Windows XP UDP multicast test failure (diff) | |
download | ice-d7a060d75dfecd9be2f63d8f9e7dc49069611fb5.tar.bz2 ice-d7a060d75dfecd9be2f63d8f9e7dc49069611fb5.tar.xz ice-d7a060d75dfecd9be2f63d8f9e7dc49069611fb5.zip |
Android demo SSL certificate fixes
Diffstat (limited to 'certs/makecerts.py')
-rwxr-xr-x | certs/makecerts.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/certs/makecerts.py b/certs/makecerts.py index 044da7064d7..7d727c99162 100755 --- a/certs/makecerts.py +++ b/certs/makecerts.py @@ -366,7 +366,7 @@ if (lang == "java" or lang == None) and (force or not os.path.exists(truststore) os.remove("certs.bks") print "Converting Java truststore to BKS..." - cmd = "keytool -importkeystore -srckeystore certs.jks -destkeystore certs.bks -srcstoretype JKS -deststoretype BKS " + \ + cmd = "keytool -importkeystore -srckeystore client.jks -destkeystore client.bks -srcstoretype JKS -deststoretype BKS " + \ "-srcstorepass password -deststorepass password -provider org.bouncycastle.jce.provider.BouncyCastleProvider -noprompt" if debug: print "[debug]", cmd @@ -379,8 +379,8 @@ if (lang == "java" or lang == None) and (force or not os.path.exists(truststore) # for root, dirnames, filenames in os.walk('../java/demo/android'): for f in filenames: - if f == "certs.bks": - shutil.copyfile("certs.bks", os.path.join(root, f)) + if f == "client.bks": + shutil.copyfile("client.bks", os.path.join(root, f)) except subprocess.CalledProcessError as e: if e.output.find("java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider") != -1: print "" @@ -389,6 +389,12 @@ 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: + 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:" + print " http://www.oracle.com/technetwork/java/javase/downloads/index.html." + print "" else: raise else: |