Search code examples
hyperledger-fabricblockchainx509certificatedocker-toolbox

Fabric cryptogen tool generating incorrect certificate paths


When following the "Build Your First Network" example from Hyperledger Fabric, after the execution of the ./byfn.sh generate the cryptogen tool is creating a various config.yaml files among the crypto-config directory, inside them are the NodeOUs especfications and the Certificate fields are defined as cacerts\ca.org1.example.com-cert.pem or something like it depending on the organization. And when I run the ./byfn.sh up -l node, errors like the one that follows gets printed on the terminal saying the file could not be found:

2019-12-05 16:31:55.085 UTC [msp] loadCertificateAt -> INFO 002 Failed loading PeerOU certificate at ...

To make things clear, I'm running the Docker Toolbox on a Windows 10 Home edition with all the pre-requisites for the Hyperledger Fabric installed. Are there any solutions for this? Is it a bug because I'm running it on Windows 10 Home?

Edit:

A partial fix for this is manually switching \ca with /ca and then executing ./byfn.sh up

Hope this helps anyone.


Solution

  • Yes, actually Hyperledger Fabric is not supported on Windows, as far as I know. You should run the dockers on Linux.