Troubleshooting

Error

Diagnosis

2022/05/27 08:32:16 [DEBUG] No Idemix credential found at /root/fabricca/clients/admin/msp/user/SignerConfig

2022/05/27 08:32:16 [DEBUG] Register { Name:ica.example Type:client Secret:**** MaxEnrollments:0 Affiliation:

Attributes:[{hf.IntermediateCA true false}] CAName: }

2022/05/27 08:32:16 [DEBUG] Adding tokenbased authorization header

2022/05/27 08:32:16 [DEBUG] Sending request

POST http://localhost:7054/register

{"id":"ica.example","type":"client","secret":"root",

"affiliation":"","attrs":[{"name":"hf.IntermediateCA",

"value":"true"}]}

2022/05/27 08:32:16 [DEBUG] Received response

statusCode=401 (401 Unauthorized)

Error: Response from server: Error Code: 20 -

Authentication failure

# vim fabric-ca-server-config.yaml

We need to change Server's listening port's default value 7054, 9443 to port value to 7055, 9444 respectively

2022/06/08 05:12:31 [INFO] Configuration file location: /etc/hyperledger/fabric-caserver/fabric-ca-server-config.yaml

2022/06/08 05:12:31 [INFO] Starting server in home directory: /etc/hyperledger/fabric-caserver

2022/06/08 05:12:31 [INFO] Server Version:

1.5.3

2022/06/08 05:12:31 [INFO] Server Levels:

&{Identity:2 Affiliation:1 Certificate:1

Credential:1 RAInfo:1 Nonce:1}

Error: Failed to get BCCSP with opts: Could not find BCCSP, no 'PKCS11' provider

After executing GO_TAGS=pkcs11 make fabricca-server, remember to remove the original fabric-ca-server binary and put the newly built binary in path/to/go/bin

After executing GO_TAGS=pkcs11 make fabricca-client, remember to remove the original fabricca-client binary and put the newly built binary in path/to/go/bin

List of errors and their diagnoses