summaryrefslogtreecommitdiff
path: root/src/auditor/generate-revoke-basedb.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-16 13:23:41 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-16 13:23:41 +0100
commit6d820228b66bde749efb4c8af7c97ae33fc6cca5 (patch)
treec9090d600f34dfc91daf257a88bacdd2bcf41198 /src/auditor/generate-revoke-basedb.sh
parentcffefb0b6305655982d409fae9f53b86025300b0 (diff)
downloadexchange-6d820228b66bde749efb4c8af7c97ae33fc6cca5.tar.gz
exchange-6d820228b66bde749efb4c8af7c97ae33fc6cca5.tar.bz2
exchange-6d820228b66bde749efb4c8af7c97ae33fc6cca5.zip
enable auditor in generate-XXX-basedb scripts
Diffstat (limited to 'src/auditor/generate-revoke-basedb.sh')
-rwxr-xr-xsrc/auditor/generate-revoke-basedb.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auditor/generate-revoke-basedb.sh b/src/auditor/generate-revoke-basedb.sh
index cb48f524d..0e997acab 100755
--- a/src/auditor/generate-revoke-basedb.sh
+++ b/src/auditor/generate-revoke-basedb.sh
@@ -72,6 +72,8 @@ export MERCHANT_URL=http://localhost:${MERCHANT_PORT}/
BANK_PORT=`taler-config -c $CONF -s BANK -o HTTP_PORT`
export BANK_URL=http://localhost:${BANK_PORT}/
export AUDITOR_URL=http://localhost:8083/
+AUDITOR_PRIV_FILE=`taler-config -f -c $CONF -s AUDITOR -o AUDITOR_PRIV_FILE`
+AUDITOR_PUB=`gnunet-ecc -p $AUDITOR_PRIV_FILE`
# patch configuration
taler-config -c $CONF -s exchange -o MASTER_PUBLIC_KEY -V $MASTER_PUB
@@ -151,6 +153,7 @@ echo -n "Setting up keys"
taler-exchange-offline -c $CONF \
download sign \
enable-account payto://x-taler-bank/localhost/2 \
+ enable-auditor $AUDITOR_PUB $AUDITOR_URL "TESTKUDOS Auditor" \
wire-fee now x-taler-bank TESTKUDOS:0.01 TESTKUDOS:0.01 \
upload &> taler-exchange-offline.log