
., such as org-251005746, and fill in the relevant fields of organization name in the configuration file. As shown below:


sh ecccsr.sh. This command will generate the following four files:
const (configFile = "config/config.yaml"// Organization MSPIDmspId = "org-251005746.fabric-5x6wdaow3q"// userNameusername = "test"// Channel namechannelName = "channel-9xjcb2"// contract namecontractName = "gotest")
version: 1.0.0client:# The organization used by default by the clientorganization: org-251005746logging:# sdk log levellevel: infotlsCerts:client:# user TLS private key pathkey:path: config/test/user_ecc_tls.key# User TLS certificate pathcert:path: config/test/user_tls.crt# Channel informationchannels:# Channel namechannel-9xjcb2:# peer node listpeers:# peer node namepeer1-org-251005746.fabric-5x6wdaow3q:# orderer node listorderers:- orderer1-org-251005746.fabric-5x6wdaow3q# Organization informationorganizations:# organization nameorg-251005746:# Organization mspId, format is ${orgName}.${clusterId}, where orgName is the organization name and clusterId is the network IDmspid: org-251005746.fabric-5x6wdaow3q# Node list under this organizationpeers:- peer1-org-251005746.fabric-5x6wdaow3q# organization userusers:# userNametest:# user private key pathkey:path: config/test/user_ecc_sign.key# User certificate pathcert:path: config/test/user_sign.crt# Node Informationpeers:# peer node namepeer1-org-251005746.fabric-5x6wdaow3q:# peer node urlurl: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080grpcOptions:# SNI in peer node TLS, use node namessl-target-name-override: peer1-org-251005746.fabric-5x6wdaow3q# TLS CA certificate pathtlsCACerts:path: config/test/ca.crtentityMatchers:peer:# Need to configure to initiate peer- pattern: (\\w*)peer1-org-251005746.fabric-5x6wdaow3q(\\w*)mappedHost: peer1-org-251005746.fabric-5x6wdaow3q# Configuration for multi-organization endorsement as follows. The first three items should be configured as PeerName of other endorsement organizations. urlSubstitutionExp is consistent with that of the orderer.# - pattern: peer1-org-251005762.fabric-5x6wdaow3q# mappedHost: peer1-org-251005762.fabric-5x6wdaow3q# sslTargetOverrideUrlSubstitutionExp: peer1-org-251005762.fabric-5x6wdaow3q# urlSubstitutionExp: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080orderer:- pattern: (\\w+)sslTargetOverrideUrlSubstitutionExp : "${1}"urlSubstitutionExp: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080
go run main.go

name: test-netversion: 1.0.0client:# The organization used by default by the clientorganization: org-251005746logging:# sdk log levellevel: infotlsCerts:client:# user TLS private key pathkey:path: src/main/resources/crypto-config/eccUser/user_ecc_tls.key# User TLS certificate pathcert:path: src/main/resources/crypto-config/eccUser/user_tls.crt# Channel informationchannels:# Channel namechannel-9xjcb2:# peer node listpeers:# peer node namepeer1-org-251005746.fabric-5x6wdaow3q:endorsingPeer: truechaincodeQuery: trueledgerQuery: trueeventSource: true# orderer node listorderers:- orderer1-org-251005746.fabric-5x6wdaow3q# Organization informationorganizations:# organization nameorg-251005746:# Organization mspId, format is ${orgName}MSP-${clusterId}, where orgName is the organization name and clusterId is the network IDmspid: org-251005746.fabric-5x6wdaow3q# Node list under this organizationpeers:- peer1-org-251005746.fabric-5x6wdaow3q# organization userusers:# userNameeccUser:# user private key pathkey:path: src/main/resources/crypto-config/eccUser/user_ecc_sign.key# User certificate pathcert:path: src/main/resources/crypto-config/eccUser/user_sign.crt# Node Informationpeers:# peer node namepeer1-org-251005746.fabric-5x6wdaow3q:# peer node urlurl: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080grpcOptions:# SNI in peer node TLS, use node namehostnameOverride: peer1-org-251005746.fabric-5x6wdaow3q# TLS CA certificate pathtlsCACerts:path: src/main/resources/crypto-config/eccUser/ca.crt# Node Informationorderers:# peer node nameorderer1-org-251005746.fabric-5x6wdaow3q:# peer node urlurl: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080grpcOptions:# SNI in peer node TLS, use node namehostnameOverride: orderer1-org-251005746.fabric-5x6wdaow3q# TLS CA certificate pathtlsCACerts:path: src/main/resources/crypto-config/eccUser/ca.crtentityMatchers:peer:- pattern: (\\w*)peer1-org-251005746.fabric-5x6wdaow3q(\\w*)mappedHost: peer1-org-251005746.fabric-5x6wdaow3q- pattern: (\\w+)sslTargetOverrideUrlSubstitutionExp: "${1}"urlSubstitutionExp: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080orderer:- pattern: (\\w+)sslTargetOverrideUrlSubstitutionExp : "${1}"urlSubstitutionExp: grpcs://org-251005746-fabric-5x6wdaow3q.tbaas.tech:8080
Feedback