root@sungil:~/fabric-samples/first-network# export CHANNEL_NAME=mychannel
root@sungil:~/fabric-samples/first-network# ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
2018-03-19 13:11:51.489 KST [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-03-19 13:11:51.494 KST [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2018-03-19 13:11:51.495 KST [msp] getMspConfig -> INFO 003 Loading NodeOUs
2018-03-19 13:11:51.495 KST [msp] getMspConfig -> INFO 004 Loading NodeOUs
2018-03-19 13:11:51.510 KST [common/tools/configtxgen] main -> CRIT 005 Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org2.example.com")
我使用byfn.sh安装了hyperledger fabric v1.1.0-rc1。
(参考: http://hyperledger-fabric.readthedocs.io/en/lastest/build_network.html)
但是我失败了。它的Fabric CA问题?
[执行]
./byfn.sh -m generate
./byfn.sh -m up
../bin/cryptogen generate --config=./crypto-config.yaml
export FABRIC_CFG_PATH=$PWD
../bin/configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
export CHANNEL_NAME=mychannel
./bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
我的configtx.yaml是https://github.com/hyperledger/fabric-samples/blob/release-1.1/first-network/configtx.yaml
答案 0 :(得分:2)
我遇到了类似的问题。帮助我的是重新开始。
./byfn.sh -m down
rm crypto-config
rm channel-artifacts
然后再次发出命令。这有助于我,channel.tx和其他成功创建。无需从示例中更改configtx.yaml。
答案 1 :(得分:0)
您不必删除文件,只需确保在执行“密码生成器”部分中的步骤之前执行了./byfn.sh -m down