Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
desAweis opened this issue Jan 12, 2023 · 2 comments

Comments

@desAweis
Copy link

desAweis commented Jan 12, 2023

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

@ToolmanP
Copy link

ToolmanP commented Jun 30, 2023

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
Copy link

ToolmanP commented Jul 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants