create files domtool needs to modify as domtool
[hcoop/domtool2.git] / bootstrap / domtool-init-truststore
... / ...
CommitLineData
1#!/bin/bash
2
3# After creating CA, add certificate to the trust store.
4
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
7
8CAPATH=`../bin/domtool-config -path cert ca`
9TRUSTSTORE=`../bin/domtool-config -path cert truststore`
10
11if [ -f "$TRUSTSTORE" ]; then
12 echo "Warning: $TRUSTSTORE exists, appending new cert instead of overwriting."
13fi
14
15cat $CAPATH/ca-cert.pem >> $TRUSTSTORE