summaryrefslogtreecommitdiffstats
path: root/scripts/tkstool.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2013-05-05 15:04:11 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2013-05-05 15:05:23 -0400
commit2320d009b917349b5eb2435c0823ab6f309d349f (patch)
treefffd236d342e6cdc778f89f819952986fae2e123 /scripts/tkstool.sh
parentdbd722371a29009a392f8851c8979f8481272938 (diff)
downloadpki-dev-2320d009b917349b5eb2435c0823ab6f309d349f.tar.gz
pki-dev-2320d009b917349b5eb2435c0823ab6f309d349f.tar.xz
pki-dev-2320d009b917349b5eb2435c0823ab6f309d349f.zip
Added new scripts.
Diffstat (limited to 'scripts/tkstool.sh')
-rwxr-xr-xscripts/tkstool.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/tkstool.sh b/scripts/tkstool.sh
new file mode 100755
index 0000000..4e17adf
--- /dev/null
+++ b/scripts/tkstool.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+INSTANCE_DIR=/var/lib/pki/tks-master
+grep "internal=" $INSTANCE_DIR/conf/password.conf | sed "s/internal=//" > $INSTANCE_DIR/conf/internal.txt
+tkstool -T -z tks.noise -o tks.txt -d $INSTANCE_DIR/alias -n sharedSecret -f $INSTANCE_DIR/conf/internal.txt