简体   繁体   English

Hyperledger Fabric:无法运行peer,因为从目录设置bccsp类型的MSP时出错:提供的标识无效

[英]Hyperledger Fabric: Cannot run peer because error when setting up MSP of type bccsp from directory: the supplied identity is not valid

我们在尝试启动同行时看到此错误,并想知道我们如何解决它?

2019-03-21 00:17:33.657 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/mydir: the supplied identity is not valid: x509: certificate signed by unknown authority

To fix this error verify that the msp directory has a folder cacerts inside it which contains the certificate of the authority you have used to obtain the cert under signcerts and admincerts folder. 要修复此错误,请验证msp目录中是否包含文件夹cacerts ,其中包含您在signcertsadmincerts文件夹下用于获取证书的权限证书。 If you are using an intermediate CA then you should also have an intermediatecerts folder under the msp dir. 如果您使用的是中间CA,那么您还应该在msp目录下有一个intermediatecerts文件夹。 Example of correctly setup msp: 正确设置msp的示例:

root@1741bbd6e1ee:/home# tree peer05-jnj
peer05-jnj
|-- admincerts
|   `-- cert.pem
|-- cacerts
|   `-- ica-jnj-7054.pem
|-- intermediatecerts
|   `-- ica-jnj-7054.pem
|-- keystore
|   `-- 75446a991f94558a0821a8cf8258746171359580f907bae88aa5f937e197bbc5_sk
|-- signcerts
|   `-- cert.pem
|-- tlscacerts
|   `-- tls-ica-jnj-7054.pem
|-- tlsintermediatecerts
|   `-- tls-ica-jnj-7054.pem
`-- user

The admincerts is mandatory when starting a peer. 启动对等体时, admincerts是必需的。 If there is no admincert, you get below error: 如果没有admincert,则会出现以下错误:

2019-03-21 18:00:10.985 UTC [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/peer03-jnj: could not load a valid admin certificate from directory /home/peer03-jnj/admincerts: stat /home/peer03-jnj/admincerts: no such file or directory

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法运行对等体,因为从目录 /etc/hyperledger/fabric/msp 设置类型为 bccsp 的 MSP 时出错 - Cannot run peer because error when setting up MSP of type bccsp from directory /etc/hyperledger/fabric/msp 无法运行 peer,因为从目录设置 bccsp 类型的 MSP 时出错...设置错误:nil conf 参考 - Cannot run peer because error when setting up MSP of type bccsp from directory ... Setup error: nil conf reference 当我执行官方文档“test.network”时,无法运行 peer,因为从目录中设置 bccsp 类型的 MSP 时出错 - when i carry out official document ‘test-network’,Cannot run peer because error when setting up MSP of type bccsp from directory 无法运行对等体,因为设置 MSP 时出错 - Cannot run peer because error when setting up MSP MSP 错误:提供的身份无效:x509:证书由未知权威 Hyperledger Fabric 签名 - MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority Hyperledger Fabric 设置 bccsp 类型的 MSP 时 BYFN.sh 失败并出现错误 - BYFN.sh failed with error when setting up MSP of type bccsp Hyperledger Fabric:[订购者/公共/服务器] initializeLocalMsp-> CRIT 01a无法初始化本地MSP:提供的标识无效 - Hyperledger Fabric: [orderer/common/server] initializeLocalMsp -> CRIT 01a Failed to initialize local MSP: the supplied identity is not valid 无法在Hyperledger Fabric中运行对等? - Cannot run peer in Hyperledger Fabric? Hyperledger - MSP 错误:提供的身份无效:x509:证书由未知机构签名 - Hyperledger - MSP error: the supplied identity is not valid: x509: certificate signed by unknown authority 有关Hyperledger Fabric MSP设置的问题 - Questions on hyperledger fabric MSP setting
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM