cryptogen: error: open ./crypto-config.yaml: The system cannot find the file specified [closed]

0 votes

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.

closed with the note: I got the mistake done.
Mar 1 in Blockchain by Tharindu
• 160 points

closed Mar 1 by Tharindu 58 views

Related Questions In Blockchain

0 votes
1 answer

Where can I find the reference format for crypto-config.yaml and configtx.yaml Hyperledger Fabric files?

The sample config files in the Hyperledger Fabric main ...READ MORE

answered Jun 27, 2018 in Blockchain by ariaholic
• 7,320 points
353 views
0 votes
1 answer
0 votes
1 answer

Truffle init: Error: Cannot find module 'original-require'

I think you need to run this ...READ MORE

answered Oct 24, 2018 in Blockchain by Omkar
• 67,120 points
109 views
+2 votes
4 answers
0 votes
1 answer
0 votes
4 answers

Hyperledger fabric: enrollAdmin.js Error: Cannot find module 'fabric-client'

Change your directory to fabric-samples/fabrcar. And run: npm ...READ MORE

answered Nov 21, 2018 in Blockchain by Omkar
• 67,120 points
783 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 27,620 points
55 views
+1 vote
1 answer