]> WPIA git - gigi.git/blobdiff - doc/scripts/generateTruststore.sh
[UPDATE-CONFIG] Use 3 hosts www, secure and static.
[gigi.git] / doc / scripts / generateTruststore.sh
old mode 100644 (file)
new mode 100755 (executable)
index 6a9e03b..6b96902
@@ -1,10 +1,11 @@
-# this script generates a simple self-signed keypair
+#!/bin/sh
+# this script imports the cacert root certs
 
 wget -N http://www.cacert.org/certs/root.crt
 wget -N http://www.cacert.org/certs/class3.crt
 
 
 wget -N http://www.cacert.org/certs/root.crt
 wget -N http://www.cacert.org/certs/class3.crt
 
-keytool -importcert -keystore ../../config/cacerts.jks -file root.crt -alias root -storepass "changeit"
-keytool -importcert -keystore ../../config/cacerts.jks -file class3.crt -alias class3 -storepass "changeit"
-keytool -importcert -keystore ../../config/cacerts.jks -file jetty.crt -alias own -storepass "changeit"
+keytool -importcert -keystore ../../config/cacerts.jks -file root.crt -alias root -storepass "changeit" $1
+keytool -importcert -keystore ../../config/cacerts.jks -file class3.crt -alias class3 -storepass "changeit" $1
+keytool -importcert -keystore ../../config/cacerts.jks -file testca.crt -alias own -storepass "changeit" $1
 
 keytool -list -keystore ../../config/cacerts.jks -storepass "changeit"
 
 keytool -list -keystore ../../config/cacerts.jks -storepass "changeit"