diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-10 22:06:55 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-10 22:06:55 +0200 |
commit | 17512aa538700fc5f2d23d42ab9020989b943bf7 (patch) | |
tree | 94922f8be93b563892b77d8996796e009dadedcd /src/exchange | |
parent | be53397fb981db5af597bce0c3bc7c87491e9f84 (diff) | |
download | exchange-17512aa538700fc5f2d23d42ab9020989b943bf7.tar.xz |
merchant private key in config generator
Diffstat (limited to 'src/exchange')
-rwxr-xr-x | src/exchange/taler-config-generate | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exchange/taler-config-generate b/src/exchange/taler-config-generate index 2490f0cb3..319455a2a 100755 --- a/src/exchange/taler-config-generate +++ b/src/exchange/taler-config-generate @@ -129,6 +129,15 @@ fi # Generate merchant-specific configuration if (test 1 = "$ARG_M") then + MASTER_KEY=`$CS -f -s merchant -o KEYFILE` + +# Generate master key (if missing) + if (test ! -e "$MASTER_KEY") + then + mkdir -p `dirname "$MASTER_KEY"` + gnunet-ecc -g 1 "$MASTER_KEY" || exit 1 + fi + $CS -s merchant -o WIREFORMAT -V "$ARG_W" || exit 1 $CS -s merchant -o EDATE -V "3 week" || exit 1 |