summaryrefslogtreecommitdiff
path: root/java/certs/makecerts.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/certs/makecerts.py')
-rwxr-xr-xjava/certs/makecerts.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/java/certs/makecerts.py b/java/certs/makecerts.py
index 08429db1b1e..46e278f205a 100755
--- a/java/certs/makecerts.py
+++ b/java/certs/makecerts.py
@@ -50,18 +50,18 @@ if not os.environ.has_key("ICE_HOME"):
target = "client.jks"
if force or not os.path.exists(target):
if os.path.exists(target):
- os.remove(target)
+ os.remove(target)
os.system("openssl pkcs12 -in c_rsa1024_pub.pem -inkey c_rsa1024_priv.pem -export -out client.p12" \
- " -name rsakey -passout pass:password -certfile cacert.pem")
+ " -name rsakey -passout pass:password -certfile cacert.pem")
os.system("java -classpath . ImportKey client.p12 rsakey cacert.pem " + target + " password")
os.remove("client.p12")
print "Created " + target
target = "server.jks"
if force or not os.path.exists(target):
if os.path.exists(target):
- os.remove(target)
+ os.remove(target)
os.system("openssl pkcs12 -in s_rsa1024_pub.pem -inkey s_rsa1024_priv.pem -export -out server.p12" \
- " -name rsakey -passout pass:password -certfile cacert.pem")
+ " -name rsakey -passout pass:password -certfile cacert.pem")
os.system("java -classpath . ImportKey server.p12 rsakey cacert.pem " + target + " password")
os.remove("server.p12")
print "Created " + target
@@ -72,10 +72,10 @@ if force or not os.path.exists(target):
ts = "certs.jks"
if force or not os.path.exists(ts):
if os.path.exists(ts):
- os.remove(ts)
+ os.remove(ts)
os.system("openssl x509 -in cacert.pem -outform DER -out cacert.der")
os.system("keytool -import -alias cacert -file cacert.der -keystore " + ts + \
- " -storepass password -noprompt")
+ " -storepass password -noprompt")
os.remove("cacert.der")
print "Created " + ts