summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-keyup
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-06-09 04:41:17 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-06-09 04:41:17 +0200
commitc013414ee825b070ba442a20e295b83c6887cd87 (patch)
treec9b22c548f0426b66fb1386fa497541ba98f9adb /bin/taler-deployment-keyup
parent84a69c0fbcf99c82fec87e84f51625e3ddf1a7e8 (diff)
downloaddeployment-c013414ee825b070ba442a20e295b83c6887cd87.tar.gz
deployment-c013414ee825b070ba442a20e295b83c6887cd87.tar.bz2
deployment-c013414ee825b070ba442a20e295b83c6887cd87.zip
salting auditor input as well
Diffstat (limited to 'bin/taler-deployment-keyup')
-rwxr-xr-xbin/taler-deployment-keyup9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/taler-deployment-keyup b/bin/taler-deployment-keyup
index 8213881..e96e63e 100755
--- a/bin/taler-deployment-keyup
+++ b/bin/taler-deployment-keyup
@@ -20,6 +20,7 @@ if ! test -f $(taler-config -s paths -o taler_deployment_shared -f)/hier.lock; t
exit 1
fi
+DATESALT=$(date +%s%N)
AUDITOR_REQUEST_DIR=$(taler-config -s exchangedb -o auditor_inputs -f)
AUDITOR_BASE_DIR=$(taler-config -s exchangedb -o auditor_base_dir -f)
AUDITOR_PRIV=$(taler-config -s auditor -o auditor_priv_file -f)
@@ -46,7 +47,7 @@ fi
mkdir -p $AUDITOR_REQUEST_DIR
taler-exchange-keyup \
-m $EXCHANGE_PRIV \
- -o $AUDITOR_REQUEST_DIR/auditor_request
+ -o $AUDITOR_REQUEST_DIR/auditor_request-${DATESALT}
# or-ing with true as user A won't be able to
# change permissions for user B's files.
@@ -60,13 +61,13 @@ taler-auditor-exchange \
# Checks whether any denom key was generated, and
# only sign it if so.
-if [[ -s $AUDITOR_REQUEST_DIR/auditor_request ]]; then
+if [[ -s $AUDITOR_REQUEST_DIR/auditor_request-${DATESALT} ]]; then
echo "Signing key material by auditor.."
taler-auditor-sign \
-u $TALER_ENV_URL_AUDITOR \
-m $EXCHANGE_PUB \
- -r "$AUDITOR_REQUEST_DIR/auditor_request" \
- -o "$AUDITOR_BASE_DIR/$(date +%s%N)" \
+ -r "$AUDITOR_REQUEST_DIR/auditor_request-${DATESALT}" \
+ -o "$AUDITOR_BASE_DIR/$DATESALT" \
-c ${HOME}/.config/taler.conf
fi