steps to install cryptogen tool for hyperledger fabric node setup?

Viewed 7022

I am a java developer and i have started learning hyperledger fabric . I am trying to do the setup for fabric node setup . I am not sure how to install cryptogen tool .

Please help me .

2 Answers

This is a workaround and works only when you have Fabric installed into you Go workspace, but works like a charm.

Go to your Bash profile and add following line:

export PATH="$HOME/Go/src/github.com/hyperledger/fabric/.build/bin:$PATH"

In other words, you are linking the Fabric crypto tools that are located in the .build/bin/ that they are:

  • chaintool
  • configtxgen
  • cryptogen

after that you will be able to use these tools directly. But remember that they will won't work anymore if you will move o remove the hyperledger/fabric folder into you Go workspace.

Related