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

+1 vote

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, 2019 in Blockchain by Tharindu
• 170 points

closed Mar 1, 2019 by Tharindu 2,200 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
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
• 69,220 points
1,930 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
• 69,220 points
5,231 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,456 views
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,740 points
1,010 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP