Re: Error using HSM in Fabric 2.2.1. Works fine in 1.4.9.
Joaquim Pedro Carvalho de Oliveira
Hi, Brett. Thank you very much for your reply! Adding the PKCS11 config directly to `core.yaml` fixed the issue and the peers started correctly. Now we're facing the same problem in the `cli` container (fabric-tools), even though the config was also added directly to `core.yaml`. The error after `peer channel create` is: 2020-11-17 17:50:07.874 UTC [bccsp] GetDefault -> DEBU 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-11-17 17:50:07.883 UTC [bccsp] GetDefault -> DEBU 002 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2020-11-17 17:50:07.885 UTC [main] InitCmd -> ERRO 003 Cannot run peer because error when setting up MSP of type bccsp from directory /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/users/admin/msp: could not initialize BCCSP Factories: Could not find default `PKCS11` BCCSP Do you have any other ideas about what can be done? Thanks for your help, ![]() Joaquim Pedro Carvalho de Oliveira
Gerente de Divisão
Analista
Superintendência de Produtos e Serviços-Centro de Dados
Diretoria de Operações
+55 (85)4008-4630
+55 (85) 98806-1085
De: "Brett T Logan" <brett.t.logan@...> Para: "joaquim-pedro.oliveira serpro" <joaquim-pedro.oliveira@...> Cc: "fabric" <fabric@...> Enviadas: Segunda-feira, 16 de novembro de 2020 19:30:25 Assunto: Re: [Hyperledger Fabric] Error using HSM in Fabric 2.2.1. Works fine in 1.4.9. There are some issues in the 2.x parsing of the BCCSP config, though I don't remember this being one of them. BCCSP has always been something we've been on the fence about letting people configure by way of environment variables (along with many other settings). Fixing the BCCSP config is something I intend to revisit after we close up our 2.3.0 release in the next few days. In the meantime you should try to add the config directly to your `core.yaml` and see if that fixes it.
----- Original message ----- |
|