I would like to generate end2end crypto-config artifacts. I need to execute following command :
build/bin/cryptogen generate --config crypto-config.yaml --output=crypto-config
Kindly let me know where i can find cryptogen tool.
I would like to generate end2end crypto-config artifacts. I need to execute following command :
build/bin/cryptogen generate --config crypto-config.yaml --output=crypto-config
Kindly let me know where i can find cryptogen tool.
On the Fabric Getting Started page you will see a link to Download Platform-specific binaries including cryptogen.
If you have cloned the source code, then from the /fabric directory you can
make cryptogen
and find it at /fabric/build/bin/cryptogen.
Sorry, I cannot comment because I haven't posted enough here, but as user324781's answer no longer works:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release-1.1/scripts/bootstrap.sh | bash
The issue was just that the link is out of date, so if this crops up again, just go on their repo and find scripts/bootstrap.sh file.
[Update]
The above may or may not have contributed to the solution, but either way it didn't seem to do anything on my machine.
First I made sure that my fabric-samples folder was up to date, I'm unsure if this helped but here if anyone is trying to copy. I followed the steps here:
cd ~/Build-Multi-Host-Network-Hyperledger/
git clone -b master https://github.com/hyperledger/fabric-samples.git
cd fabric-samples
git checkout master
then running (replacing ubuntu with your username):
cd ~/Build-Multi-Host-Network-Hyperledger/
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0
export PATH=/home/ubuntu/Build-Multi-Host-Network-Hyperledger/bin:$PATH
Based on this, and how the problem was solved, probably run the updated version of user's script, and add that dir to the path.
Hopefully, this can help someone.
I did the following steps to install cryptogen as is in same sequence -
mkdir -p $GOPATH/src/github.com/hyperledger
cd $GOPATH/src/github.com/hyperledger
git clone https://github.com/hyperledger/fabric/
cd fabric
make cryptogen
make docker
PATH=$PATH:$GOPATH/src/github.com/hyperledger/fabric/build/bin
For Linux users: The installation process of binaries tools for Hyperledger Fabric is captured in the download platform-specific binaries section.
You need to run:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/release-1.1/scripts/bootstrap.sh | bash
It will download required files. Make sure you have all prerequisite installed and configured as well.
For MacOSX users: You can also use Homebrew to install the Hyperledger Fabric binaries:
brew tap hyperledger/fabric
brew install fabric-tools
This worked for me. Hope it helps
export PATH=${PWD}/../bin:${PWD}:$PATH
export FABRIC_CFG_PATH=${PWD}
export VERBOSE=false