[英]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
,其中包含您在signcerts
和admincerts
文件夹下用于获取证书的权限证书。 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.