1

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.

d3v9
  • 97
  • 6

1 Answers1

1

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

Riki95
  • 706
  • 1
  • 7
  • 16
  • This is 100% true, while you can run Fabric on Windows, it's at your own risk, we do not recommend you do it, and do not provide any guarantee that it will work. We do not test any Windows paths in CI, nor does the fabric-test community. – lindluni Dec 07 '19 at 04:37
  • This is bad news! Do you guys know if I would have problems if I used the CAs to generate the certificates running containers on Windows? Is the cryptogen tool actually the CA or it does their work when running the examples locally without one? Should the cryptogen tool be used in production? – d3v9 Dec 09 '19 at 11:40
  • Yes the cryptogen is like a CA and generates msp inside the crypto-config folder. Anyways I suggest to run the cryptogen tool again on Linux in order to do a clean generation – Riki95 Dec 09 '19 at 13:32
  • Thanks, @RicNtt! Do you know if the cryptogen tool is used in production? Or its just for learning and local development? – d3v9 Dec 09 '19 at 19:55
  • I am using it in production – Riki95 Dec 10 '19 at 09:41