fabric-samples icon indicating copy to clipboard operation
fabric-samples copied to clipboard

The new peer gateway samples only work if test-network is deployed with CAs

Open davidkel opened this issue 3 years ago • 4 comments

If you deploy a test-network using cryptogen then the peer gateway samples fail because the name of the certificates and private keys are different when generating the identities via cryptogen to that of the identities generated by a CA and the samples are hardcoded with the CA names

davidkel avatar Jan 23 '22 10:01 davidkel

Hi. I also noticed this. Are you using any workarounds currently?

shashwot2 avatar Jan 26 '22 08:01 shashwot2

@shashwot2 you would either have to change the sample code to reference the right file, or bring up testnetwork with cas

davidkel avatar Jan 26 '22 14:01 davidkel

That makes sense. Thanks!

shashwot2 avatar Jan 27 '22 02:01 shashwot2

I think encouraging people to bring up the test network with CAs is a good thing. I remember we thought about removing cryptogen altogether when the sample was created.

nikhil550 avatar Jan 29 '22 21:01 nikhil550

I think PR #1183 resolves this issue.

bestbeforetoday avatar Sep 12 '24 10:09 bestbeforetoday