]> WPIA git - gigi.git/blob - keys/generateTruststore.sh
[Keys] a certificate structure that looks like the planned future.
[gigi.git] / keys / generateTruststore.sh
1 #!/bin/bash
2 # this script imports the cacert root certs
3
4 rm -f ../config/cacerts.jks
5
6 #wget -N http://www.cacert.org/certs/root.crt
7 #wget -N http://www.cacert.org/certs/class3.crt
8
9 #keytool -importcert -keystore ../config/cacerts.jks -file root.crt -alias root -storepass "changeit" $1
10 #keytool -importcert -keystore ../config/cacerts.jks -file class3.crt -alias class3 -storepass "changeit" $1
11
12 function import(){
13   keytool -importcert -keystore ../config/cacerts.jks -file "$1.crt" -alias own -storepass "changeit" -alias "$1" $2
14 }
15
16 import root -noprompt
17 import assured
18 import unassured
19
20 keytool -list -keystore ../config/cacerts.jks -storepass "changeit"