[UPDATE-CONFIG] Move the generated keys to a more resonable location.
authorFelix Dörre <felix@dogcraft.de>
Fri, 4 Jul 2014 21:54:23 +0000 (23:54 +0200)
committerFelix Dörre <felix@dogcraft.de>
Fri, 4 Jul 2014 21:59:14 +0000 (23:59 +0200)
doc/scripts/generateTruststore.sh [deleted file]
keys/.dirinfo [new file with mode: 0644]
keys/.gitignore [moved from doc/scripts/.gitignore with 100% similarity]
keys/generateKeys.sh [moved from doc/scripts/generateKeys.sh with 80% similarity]
keys/generateTruststore.sh [new file with mode: 0755]
keys/selfsign.config [moved from doc/scripts/selfsign.config with 100% similarity]

diff --git a/doc/scripts/generateTruststore.sh b/doc/scripts/generateTruststore.sh
deleted file mode 100755 (executable)
index 6b96902..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# 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
-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"
diff --git a/keys/.dirinfo b/keys/.dirinfo
new file mode 100644 (file)
index 0000000..c9087a3
--- /dev/null
@@ -0,0 +1,9 @@
+This directoy will contain keys created to test CAcert-gigi.
+generate them with doc/scripts/generateKeys.sh
+It may contain:
similarity index 100%
rename from doc/scripts/.gitignore
rename to keys/.gitignore
similarity index 80%
rename from doc/scripts/generateKeys.sh
rename to keys/generateKeys.sh
index 80bbf89..48111cc 100755 (executable)
@@ -21,7 +21,7 @@ openssl ca -cert testca.crt -keyfile testca.key -in $1.csr -out $1.crt -days 356
 openssl pkcs12 -inkey $1.key -in $1.crt -name $1 -export -passout pass:changeit -out $1.pkcs12
-keytool -importkeystore -noprompt -srckeystore $1.pkcs12 -destkeystore ../../config/keystore.pkcs12 -srcstoretype pkcs12 -deststoretype pkcs12 -srcstorepass "changeit" -deststorepass "changeit"
+keytool -importkeystore -noprompt -srckeystore $1.pkcs12 -destkeystore         ../config/keystore.pkcs12 -srcstoretype pkcs12 -deststoretype pkcs12 -srcstorepass "changeit" -deststorepass "changeit"
@@ -30,4 +30,4 @@ genserver secure
 genserver static
 genserver api
-keytool -list -keystore ../../config/keystore.pkcs12 -storetype pkcs12 -storepass "changeit"
+keytool -list -keystore ../config/keystore.pkcs12 -storetype pkcs12 -storepass "changeit"
diff --git a/keys/generateTruststore.sh b/keys/generateTruststore.sh
new file mode 100755 (executable)
index 0000000..a51481d
--- /dev/null
@@ -0,0 +1,11 @@
+# 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
+#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"