gpt4 book ai didi

hyperledger-fabric - super 账本结构 :TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress

转载 作者:行者123 更新时间:2023-12-05 07:14:38 67 4
gpt4 key购买 nike

这似乎是 HLF channel 创建命令中的常见问题

这是我创建 channel 的命令

peer channel create -o orderer1.workspace:7050 -c base-main-channel -f ./config/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem

我从订单节点得到的错误是

ERRO 02d TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress=172.23.0.7:36982

我试过这个问题的解决方案 TLS handshake failed with error remote error: tls: bad certificate server=Orderer

但是对我没用

我使用 raft 排序服务而不是 kafka 的唯一区别

这是我的木筏配置

Raft:
<<: *ChannelDefaults
Capabilities:
<<: *ChannelCapabilities
Orderer:
<<: *OrdererDefaults
OrdererType: etcdraft
EtcdRaft:
Consenters:
- Host: orderer.base
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/base.order/orderers/orderer1.base.order/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/base.order/orderers/orderer1.base.order/tls/server.crt
Addresses:
- orderer.base:7050

最佳答案

您在 peer channel create 命令中为 --cafile 使用了不正确的文件夹路径。

代替

--cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/orderers/orderer1.base.order/msp/tlscacerts/tlsca.base.order-cert.pem

使用

--cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/tlsca/tlsca.base.order-cert.pem

关于hyperledger-fabric - super 账本结构 :TLS handshake failed with error remote error: tls: bad certificate server=Orderer remoteaddress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59842863/

67 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com