title: hyperledger : error creating a Channel Configuration Transaction
body: <p>I have been following this link : <a href="http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot" rel="nofollow noreferrer">http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#troubleshoot</a> for starting my first network, using byfn.sh file, and have executed all steps till </p>
  
  <pre><code>export CHANNEL_NAME=mychannel  &amp;&amp; ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
  </code></pre>
  
  <p>The error that I am getting is:</p>
  
  <pre><code>himani@himani-HP-Notebook:~/fabric-samples/first-network$ export CHANNEL_NAME=mychannelthis  &amp;&amp; ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME2018-06-07 11:42:00.552 IST [common/tools/configtxgen] main -&gt; INFO 001 Loading configuration
  2018-06-07 11:42:00.560 IST [common/tools/configtxgen] doOutputChannelCreateTx -&gt; INFO 002 Generating new channel configtx
  2018-06-07 11:42:00.560 IST [msp] getMspConfig -&gt; INFO 003 Loading NodeOUs
  2018-06-07 11:42:00.561 IST [msp] getMspConfig -&gt; INFO 004 Loading NodeOUs
  2018-06-07 11:42:00.579 IST [common/tools/configtxgen] main -&gt; CRIT 005 Error on outputChannelCreateTx: config update generation failure: could not parse application to application group: setting up the MSP manager failed: the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")
  </code></pre>
  
  <p>I have tried variations of the command,</p>
  
  <pre><code>export CHANNEL_NAME=mychannelanother  &amp;&amp; ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
  
  export CHANNEL_NAME=mychannelanother  &amp;&amp; ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $mychannelanother
  
  export CHANNEL_NAME=mychannel  &amp;&amp; ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $mychannel
  </code></pre>
  
  <p>I even tried creating a channel without using byfn.sh file, but got a different error</p>
  
  <pre><code>himani@himani-HP-Notebook:~/fabric-samples/first-network$ peer channel create -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
  No command 'peer' found, did you mean:
   Command 'pear' from package 'php-pear' (main)
   Command 'pee' from package 'moreutils' (universe)
   Command 'peet' from package 'pipexec' (universe)
   Command 'beer' from package 'gerstensaft' (universe)
  peer: command not found
  himani@himani-HP-Notebook:~/fabric-samples/first-network$ peer channel create -o orderer.example.com:7050 -c mychannelthis -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
  No command 'peer' found, did you mean:
   Command 'pear' from package 'php-pear' (main)
   Command 'pee' from package 'moreutils' (universe)
   Command 'beer' from package 'gerstensaft' (universe)
   Command 'peet' from package 'pipexec' (universe)
  peer: command not found
  </code></pre>
  
  <p>I modified the <em>/home/himani/fabric-samples/first-network/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem</em> doc by referring to this link : <a href="https://gerrit.hyperledger.org/r/#/c/18177/" rel="nofollow noreferrer">https://gerrit.hyperledger.org/r/#/c/18177/</a> , and executed the command again, but to no avail.</p>
  
  <p>Are my certificates outdated? Where can I find the right ones? Is the issue something else?</p>
  
  <p><strong>UPDATE:</strong>
  After referring to a solution provided to a similar problem, <a href="https://stackoverflow.com/questions/49356066/hyperledger-fabric-v1-1-0-byfn-tutorial-on-ubuntu-16-04?rq=1">Hyperledger Fabric v1.1.0 byfn tutorial on Ubuntu 16.04</a>, I brought down my network and tried to clean up artifacts but I couldn't execute those commands. Channel artifacts folder is empty.</p>
  
  <p><a href="https://i.stack.imgur.com/IOwl4.png" rel="nofollow noreferrer">I couldn't execute those commands</a></p>