summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-keyup
blob: 4eb2b8992b078309180af67500de7091de49fa77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

set -eu

auditor_request_dir=${HOME}/shared-data/exchange/auditor-request/
mkdir -p $auditor_request_dir
taler-exchange-keyup \
  -m ${HOME}/shared-data/exchange/offline-keys/master.priv \
  -o $auditor_request_dir/auditor_request

auditor_base_dir=$(taler-config -s exchangedb -o auditor_base_dir -f)
exchange_master_pub=$(taler-config -s exchange -o master_public_key)
auditor_sig_output_file=$(date "+%s%N")
taler-auditor-sign -u https://auditor.taler.net/ -m $exchange_master_pub -r $auditor_request_dir/auditor_request -o "$auditor_base_dir/$auditor_sig_output_file"
if [[ 0 != $? ]]; then
  echo Auditor signing not accomplished.
fi

chmod -fR g+rw ~/shared-data