From 85e5691d89ddb207a2f70e3530918143b18c593e Mon Sep 17 00:00:00 2001 From: sapthasurendran Date: Tue, 28 Jun 2022 17:51:42 +0530 Subject: [PATCH] HSM config path changed Signed-off-by: sapthasurendran --- asset-transfer-basic/application-gateway-hsm/README.md | 6 +++--- .../application-gateway-hsm/scripts/generate-hsm-user.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asset-transfer-basic/application-gateway-hsm/README.md b/asset-transfer-basic/application-gateway-hsm/README.md index b6953253..8cbd8155 100644 --- a/asset-transfer-basic/application-gateway-hsm/README.md +++ b/asset-transfer-basic/application-gateway-hsm/README.md @@ -65,12 +65,12 @@ Or compiled and installed from source: If you have not initialized a token previously (or it has been deleted) then you will need to perform this one time operation ```bash -echo directories.tokendir = /tmp > $HOME/softhsm2.conf -export SOFTHSM2_CONF=$HOME/softhsm2.conf +echo directories.tokendir = /tmp > ./softhsm2.conf +export SOFTHSM2_CONF=./softhsm2.conf softhsm2-util --init-token --slot 0 --label "ForFabric" --pin 98765432 --so-pin 1234 ``` -This will create a SoftHSM configuration file called `softhsm2.conf` and will be stored in your home directory. This is +This will create a SoftHSM configuration file called `softhsm2.conf` and will be stored in the current directory. This is where the sample expects to find a SoftHSM configuration file The Security Officer PIN, specified with the `--so-pin` flag, can be used to re-initialize the token, diff --git a/asset-transfer-basic/application-gateway-hsm/scripts/generate-hsm-user.sh b/asset-transfer-basic/application-gateway-hsm/scripts/generate-hsm-user.sh index 481ca22b..04ec72e0 100755 --- a/asset-transfer-basic/application-gateway-hsm/scripts/generate-hsm-user.sh +++ b/asset-transfer-basic/application-gateway-hsm/scripts/generate-hsm-user.sh @@ -22,7 +22,7 @@ done [ -z $HSM2_LIB ] && echo No SoftHSM PKCS11 Library found, ensure you have installed softhsm2 && exit 1 # create a softhsm2.conf file if one doesn't exist -HSM2_CONF=$HOME/softhsm2.conf +HSM2_CONF=../softhsm2.conf [ ! -f $HSM2_CONF ] && echo directories.tokendir = /tmp > $HSM2_CONF # Update the client config file to point to the softhsm pkcs11 library