SoftHSM configuration with Hyperledger Fabric #fabricca #fabric


vtech
 
Edited

Hi All,
I have enabled the softhsm in Fabric. Softhsm is initialised for labels orderer.example.comorg1.example.com & org2.example.com . Orderer is throwing initialisation error while starting up the network. OS is Ubuntu 16.04. Did anyone try this, any help /reference/documentation  will be helpful ?
```
2018-11-14 06:14:39.027 UTC [localconfig] completeInitialization -> INFO 001 Kafka.Version unset, setting to 0.10.2.0 2018-11-14 06:14:39.039 UTC [bccsp] initBCCSP -> DEBU 002 Initialize BCCSP [SW] 2018-11-14 06:14:39.039 UTC [bccsp_p11] loadLib -> DEBU 003 Loading pkcs11 library [/usr/local/lib/softhsm/libsofthsm2.so] 2018-11-14 06:14:39.039 UTC [orderer/common/server] initializeLocalMsp -> FATA 004 Failed to initialize local MSP: could not initialize BCCSP Factories: Failed initializing PKCS11.BCCSP %!s(<nil>): Could not initialize BCCSP PKCS11 [Failed initializing PKCS11 library /usr/local/lib/softhsm/libsofthsm2.so orderer.example.com: Instantiate failed [/usr/local/lib/softhsm/libsofthsm2.so]] Could not find default `PKCS11` BCCSP
```
Orderer slot details:

```
Slot 2033305765 Slot info: Description: SoftHSM slot ID 0x7931c8a5 Manufacturer ID: SoftHSM project Hardware version: 2.3 Firmware version: 2.3 Token present: yes Token info: Manufacturer ID: SoftHSM project Model: SoftHSM v2 Hardware version: 2.3 Firmware version: 2.3 Serial number: b998add27931c8a5 Initialized: yes User PIN init.: yes Label: orderer.example.com