summaryrefslogtreecommitdiffstats
path: root/scripts/tps-secret-import.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tps-secret-import.sh')
-rwxr-xr-xscripts/tps-secret-import.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/tps-secret-import.sh b/scripts/tps-secret-import.sh
new file mode 100755
index 0000000..b21cd36
--- /dev/null
+++ b/scripts/tps-secret-import.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+INSTANCE_DIR=/var/lib/pki-tps
+grep "internal:" $INSTANCE_DIR/conf/password.conf | sed "s/internal://" > $INSTANCE_DIR/conf/internal.txt
+tkstool -I -d $INSTANCE_DIR/alias -n sharedSecret -f $INSTANCE_DIR/conf/internal.txt