Issue while using fabric client java sdk (since there is no Rest API support) in local development environment for Hyperledher Fabric V1.0

后端 未结 2 1298
半阙折子戏
半阙折子戏 2021-01-07 10:15

I have done the following as per the suggestion that I have got from my previous post to communicate with locally running Hyperledger Fabric V1.0 network from java applicati

相关标签:
2条回答
  • 2021-01-07 11:02

    How did you created the crypto material?! I'm not asking about the tool that you used, my question is more related to the Common Name that you defined for the certificates. The CN of the certificates have to be the same to the host to which you are connecting.

    If I were you, I'd create the crypto material with the cryptogen tool. Then, I'd change the URL for the call. I understand that you are in a localhost, so instead of 192.168.99.100, could you try to call orderer.example.com.

    On the other hand, I think that you don't have to execute the createchannel, because you have create it before.

    0 讨论(0)
  • 2021-01-07 11:05

    If you used the first-network sample, it has TLS enabled and in your code above you are not using TLS. So my best guess is that the error is caused by not using TLS in your client.

    0 讨论(0)
提交回复
热议问题