I created a generate.sh to generate crypto material but it leaves me this error on the console.
cryptogen: error: open ./crypto-config.yaml: The system cannot find the file specified
This is how my generate.sh looks like.
export FABRIC_CFG_PATH=$PWD
echo $FABRIC_CFG_PATH
export PATH=${PWD}/../bin:${PWD}:$PATH
export VERBOSE=false
CHANNEL_NAME=mychannel
# remove previous crypto material
rm -fr crypto-config/*
# remove previous crypto material
cd channel-artifacts
rm -f *
# generate crypto material
cryptogen generate --config=./crypto-config.yaml
if [ "$?" -ne 0 ]; then
echo "Failed to generate crypto material..."
exit 1
fi
Can someone help me to solve this problem? . Thank you.