我正在设置一个Hyperledger Fabric,其中包括: 1个单位, 2个订购者, 2个同行, 4卡夫卡 3个动物园管理员, 1个证书颁发机构。
我遵循了fabric-samples-with-kafka指南,但是由于我也需要hyperledger作曲者,因此在docker compose文件中添加了一个附加的CA。运行./startfabric
后,我所有的容器都开始记录握手失败:2019-06-05 09:56:23.215 UTC [grpc] Printf -> DEBU 20c grpc: Server.Serve failed to complete security handshake from "192.168.96.6:49830": remote error: tls: bad certificate
。由于这是一个握手错误,我相信这是因为CA设置不正确,我在docker组合中的CA看起来像这样
ca.org1.example.com:
image: hyperledger/fabric-ca:latest
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca.org1.example.com
- FABRIC_CA_SERVER_CSR_CN=ca.org1.example.com
- FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.example.com-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/071043b1f49c2df2e317c9679e0f15212bdf8ee7a193d021dbd8b3d29709eb5f_sk
- FABRIC_CA_SERVER_TLS_KEYFILE=/etc/hyperledger/fabric-ca-server-config/071043b1f49c2df2e317c9679e0f15212bdf8ee7a193d021dbd8b3d29709eb5f_sk
ports:
- "7054:7054"
# command: bash
command: sh -c 'fabric-ca-server start --ca.certfile $${FABRIC_CA_SERVER_CA_CERTFILE} --ca.keyfile $${FABRIC_CA_SERVER_CA_KEYFILE} -b Admin:adminpw '
# command: sh -c 'fabric-ca-server start -b Admin:adminpw '
volumes:
- ./crypto-config/peerOrganizations/org1.example.com/ca:/etc/hyperledger/fabric-ca-server-config
- ./crypto-config/peerOrganizations/org1.example.com:/etc/hyperledger/fabric-ca-server-config
container_name: ca.org1.example.com
networks:
- byfn
有人成功设置了Fabric + Kafka +作曲家,并能给我一些建议吗?
答案 0 :(得分:0)
鉴于您似乎刚刚起步,我完全不会走这条路。 为什么?
Fabric 1.2很老了;我们现在使用的是Fabric 1.4.1,转角为1.4.2
Composer不再处于积极开发中;这不是面向IBM的营销活动,而是https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform是构建Composer的核心团队的替代工具,但是编程模型的许多方面现在已成为Fabric和Fabric SDK的一部分
Fabric 1.4.1引入了基于Raft的订购,它比基于Kafka的订购器更易于运行和操作