summaryrefslogtreecommitdiffstats
path: root/scripts/tps-secret-list.sh
blob: 334514c5302df5de8160c98e36c1c260c2177f29 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

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

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

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