3 # After creating CA, add certificate to the trust store.
5 # This is its own script because root will likely not have afs tokens
6 # and be unable to write to the truststore if it is stored in afs
8 CAPATH
=`../bin/domtool-config -path cert ca`
9 TRUSTSTORE
=`../bin/domtool-config -path cert truststore`
11 if [ -f "$TRUSTSTORE" ]; then
12 echo "Warning: $TRUSTSTORE exists, appending new cert instead of overwriting."
15 cat $CAPATH/ca-cert.pem
>> $TRUSTSTORE