mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
HSM config path changed
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
This commit is contained in:
parent
8e831283b0
commit
85e5691d89
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue