Commit | Line | Data |
---|---|---|
0f9f712c CE |
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 | ||
8 | CAPATH=`../bin/domtool-config -path cert ca` | |
9 | TRUSTSTORE=`../bin/domtool-config -path cert truststore` | |
10 | ||
11 | if [ -f "$TRUSTSTORE" ]; then | |
12 | echo "Warning: $TRUSTSTORE exists, appending new cert instead of overwriting." | |
13 | fi | |
14 | ||
15 | cat $CAPATH/ca-cert.pem >> $TRUSTSTORE |