Hyperledger Fabric: Cannot run peer because error when setting up MSP of type bccsp from directory: the supplied identity is not valid The Next CEO of Stack OverflowUnable to register second validating peer with Hyperledger-FabricCannot run peer because cannot init cryptoCreate & Join Channel in Hyperledger Fabric Build your First Network Walk ThroughFailed to deserialize creater identity , the supplied identity is not valid error in HyperledgerSetting up a Blockchain Business Network With Hyperledger Fabric & Composer Running in Multiple Physical MachineBYFN.sh failed with error when setting up MSP of type bccsphyperledger fabric not starting every time I have startedMSP error: the supplied identity is not valid: x509: certificate signed by unknown authorityHow to fix Cannot run peer because cannot init crypto, folder does not existError when trying to create and join a channel in hyperledger fabric blockchain services
Powershell. How to parse gci Name?
Plot of histogram similar to output from @risk
A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See
Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?
How did people program for Consoles with multiple CPUs?
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
Can we say or write : "No, it'sn't"?
Bartok - Syncopation (1): Meaning of notes in between Grand Staff
"misplaced omit" error when >centering columns
What happened in Rome, when the western empire "fell"?
Does Germany produce more waste than the US?
Domestic-to-international connection at Orlando (MCO)
Proper way to express "He disappeared them"
Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?
Make solar eclipses exceedingly rare, but still have new moons
Math-accent symbol over parentheses enclosing accented symbol (amsmath)
How to install OpenCV on Raspbian Stretch?
Is there a difference between "Fahrstuhl" and "Aufzug"
How to avoid supervisors with prejudiced views?
Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?
What steps are necessary to read a Modern SSD in Medieval Europe?
What flight has the highest ratio of time difference to flight time?
Which one is the true statement?
Solving system of ODEs with extra parameter
Hyperledger Fabric: Cannot run peer because error when setting up MSP of type bccsp from directory: the supplied identity is not valid
The Next CEO of Stack OverflowUnable to register second validating peer with Hyperledger-FabricCannot run peer because cannot init cryptoCreate & Join Channel in Hyperledger Fabric Build your First Network Walk ThroughFailed to deserialize creater identity , the supplied identity is not valid error in HyperledgerSetting up a Blockchain Business Network With Hyperledger Fabric & Composer Running in Multiple Physical MachineBYFN.sh failed with error when setting up MSP of type bccsphyperledger fabric not starting every time I have startedMSP error: the supplied identity is not valid: x509: certificate signed by unknown authorityHow to fix Cannot run peer because cannot init crypto, folder does not existError when trying to create and join a channel in hyperledger fabric blockchain services
we see this error when trying to start a peer and are wondering how can we fix it?
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
hyperledger-fabric
add a comment |
we see this error when trying to start a peer and are wondering how can we fix it?
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
hyperledger-fabric
add a comment |
we see this error when trying to start a peer and are wondering how can we fix it?
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
hyperledger-fabric
we see this error when trying to start a peer and are wondering how can we fix it?
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
hyperledger-fabric
hyperledger-fabric
asked Mar 21 at 18:07
morpheusmorpheus
6,8941456105
6,8941456105
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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. If you are using an intermediate CA then you should also have an intermediatecerts
folder under the msp dir. Example of correctly setup 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. If there is no admincert, you get below error:
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
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286699%2fhyperledger-fabric-cannot-run-peer-because-error-when-setting-up-msp-of-type-bc%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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. If you are using an intermediate CA then you should also have an intermediatecerts
folder under the msp dir. Example of correctly setup 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. If there is no admincert, you get below error:
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
add a comment |
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. If you are using an intermediate CA then you should also have an intermediatecerts
folder under the msp dir. Example of correctly setup 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. If there is no admincert, you get below error:
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
add a comment |
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. If you are using an intermediate CA then you should also have an intermediatecerts
folder under the msp dir. Example of correctly setup 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. If there is no admincert, you get below error:
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
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. If you are using an intermediate CA then you should also have an intermediatecerts
folder under the msp dir. Example of correctly setup 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. If there is no admincert, you get below error:
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
answered Mar 21 at 18:20
morpheusmorpheus
6,8941456105
6,8941456105
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286699%2fhyperledger-fabric-cannot-run-peer-because-error-when-setting-up-msp-of-type-bc%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown