fabric-sdk-go icon indicating copy to clipboard operation
fabric-sdk-go copied to clipboard

Is there a tutorial to introduce how to implement 'fabric-ca-server/fabric-ca-client' functionality using this SDK like the official document

Open desAweis opened this issue 3 years ago • 2 comments

Hello there,

I want to run a Fabric CA Server and Fabric CA Client using this SDK, to implement the functionality like the offical document using binary 'fabric-ca-server' and 'fabric-ca-client'. I want to use this SDK to start a new organization CA server, then register admin and enroll admin and so on.

Unfortunately, I couldn't find a useful tutorial online. Is it possible to do that using this SDK or Fabric CA SDK?

Thank you!

Best, Wei

desAweis avatar Jan 12 '23 17:01 desAweis

I'm also looking for a go counterpart for something that is similar to a node SDK. But I just have no idea how to create a so-called context and config provider mentioned in code. There is no constructor for it, i do not know how to manually build a config provider for it. The codes are poorly documented and so highly nested compared to the node examples.

ToolmanP avatar Jun 30 '23 06:06 ToolmanP

Hello there,

I want to run a Fabric CA Server and Fabric CA Client using this SDK, to implement the functionality like the offical document using binary 'fabric-ca-server' and 'fabric-ca-client'. I want to use this SDK to start a new organization CA server, then register admin and enroll admin and so on.

Unfortunately, I couldn't find a useful tutorial online. Is it possible to do that using this SDK or Fabric CA SDK?

Thank you!

Best, Wei

After some investigation, I did find something interesting in one of their mock example defined here func (f *testFixture) setup() *fabsdk.FabricSDK which defines a configuration process which overrides the original test_server yaml defines here

I guess that's all we needed for building a fabric-ca-client + fabric-ca-server here.

For your CA-server specific issue , I guess you can check something here

https://github.com/hyperledger/fabric-sdk-go/blob/main/pkg/msp/test/mockmsp/mockfabriccaserver.go

which comes with a dedicated mock server setup. Hopes it will work for you.

ToolmanP avatar Jul 02 '23 15:07 ToolmanP