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 119 views

I am facing similar problem, while trying out first network example. Please help,

Tried below:

 /XXX/YYY/Hyperledger/fabric-samples/bin/cryptogen generate --config=./crypto-config.yaml

cryptogen: error: open ./crypto-config.yaml: no such file or directory, try --help

Shiveshs-MacBook-Air:~ shiveshranjan$ /XXX/YYY/Hyperledger/fabric-samples/bin/cryptogen generate --config=./XXX/YYY/Hyperledger/fabric-samples/first-network/crypto-config.yaml

cryptogen: error: open ./XXX/YYY/Hyperledger/fabric-samples/first-network/crypto-config.yaml: no such file or directory, try --help

Do you have a file name crypto-config.yaml? 

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,340 points
401 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,520 points
144 views
+1 vote
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,520 points
1,023 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
• 26,550 points
68 views
+1 vote
1 answer