summaryrefslogtreecommitdiffstats
path: root/scripts/tks-secret-list.sh
blob: 688eeb3938d1609135a341314c957685acfc9c5b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

INSTANCE_DIR=/var/lib/pki/tks-master
grep "internal=" $INSTANCE_DIR/conf/password.conf | sed "s/internal=//" > $INSTANCE_DIR/conf/internal.txt

echo certutil -K -d $INSTANCE_DIR/alias -f $INSTANCE_DIR/conf/internal.txt
certutil -K -d $INSTANCE_DIR/alias -f $INSTANCE_DIR/conf/internal.txt

echo tkstool -L -d $INSTANCE_DIR/alias -n sharedSecret -f $INSTANCE_DIR/conf/internal.txt -h all
tkstool -L -d $INSTANCE_DIR/alias -n sharedSecret -f $INSTANCE_DIR/conf/internal.txt -h all