Hyperledger fabric 找不到Signcert hyperledger结构
我正在尝试运行结构网络,并出现以下错误Hyperledger fabric 找不到Signcert hyperledger结构,hyperledger-fabric,blockchain,hyperledger,hyperledger-fabric-ca,Hyperledger Fabric,Blockchain,Hyperledger,Hyperledger Fabric Ca,我正在尝试运行结构网络,并出现以下错误 peer1.org2.example.com | 2019-08-09 19:37:30.561 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp: could not load a valid signer certifi
peer1.org2.example.com | 2019-08-09 19:37:30.561 UTC [main] InitCmd ->
ERRO 001 Cannot run peer because error when setting up MSP of type bccsp
from directory /etc/hyperledger/fabric/msp: could not load a valid signer certificate
from directory /etc/hyperledger/fabric/msp/signcerts: stat /etc/hyperledger/fabric/msp/signcerts:
no such file or directory
我还试图在crypto config文件夹中找到该目录,但在那里也没有看到signcerts文件夹。我不确定
cryptogen-generate--config=./crypto-config.yaml
是否生成此文件夹
我正在使用docker compose运行fabric网络。我有两个坐骑
../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp
../crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls
请建议 cryptogen生成加密配置目录,但为了避免错误。您应该通过根据系统路径进行更改来运行以下命令 docker exec-it cli bash
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
CORE_PEER_LOCALMSPID="Org1MSP"
CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
所以问题是,它生成的文件夹在
crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/signcert
我在看电视
crypto-config/peerOrganizations/org1.example.com/msp
还有一个坐骑是错的。orderer的另一个特点是相对映射/而不是../
感谢您的帮助@adarshJhacryptogen generate--config=./crypto-config.yaml
应该生成一个目录crypto-config
。。你看到那个导演了吗?