@@ -34,21 +34,21 @@ function createOrg1 {
34
34
echo " Register peer0"
35
35
echo
36
36
set -x
37
- fabric-ca-client register --caname ca-org1 --id.name peer0 --id.secret peer0pw --id.type peer --id.attrs ' "hf.Registrar.Roles=peer" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/org1/tls-cert.pem
37
+ fabric-ca-client register --caname ca-org1 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles ${PWD} /organizations/fabric-ca/org1/tls-cert.pem
38
38
set +x
39
39
40
40
echo
41
41
echo " Register user"
42
42
echo
43
43
set -x
44
- fabric-ca-client register --caname ca-org1 --id.name user1 --id.secret user1pw --id.type client --id.attrs ' "hf.Registrar.Roles=client" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/org1/tls-cert.pem
44
+ fabric-ca-client register --caname ca-org1 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles ${PWD} /organizations/fabric-ca/org1/tls-cert.pem
45
45
set +x
46
46
47
47
echo
48
48
echo " Register the org admin"
49
49
echo
50
50
set -x
51
- fabric-ca-client register --caname ca-org1 --id.name org1admin --id.secret org1adminpw --id.type admin --id.attrs ' "hf.Registrar.Roles=admin" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/org1/tls-cert.pem
51
+ fabric-ca-client register --caname ca-org1 --id.name org1admin --id.secret org1adminpw --id.type admin --tls.certfiles ${PWD} /organizations/fabric-ca/org1/tls-cert.pem
52
52
set +x
53
53
54
54
mkdir -p organizations/peerOrganizations/org1.example.com/peers
@@ -142,21 +142,21 @@ function createOrg2 {
142
142
echo " Register peer0"
143
143
echo
144
144
set -x
145
- fabric-ca-client register --caname ca-org2 --id.name peer0 --id.secret peer0pw --id.type peer --id.attrs ' "hf.Registrar.Roles=peer" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/org2/tls-cert.pem
145
+ fabric-ca-client register --caname ca-org2 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles ${PWD} /organizations/fabric-ca/org2/tls-cert.pem
146
146
set +x
147
147
148
148
echo
149
149
echo " Register user"
150
150
echo
151
151
set -x
152
- fabric-ca-client register --caname ca-org2 --id.name user1 --id.secret user1pw --id.type client --id.attrs ' "hf.Registrar.Roles=client" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/org2/tls-cert.pem
152
+ fabric-ca-client register --caname ca-org2 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles ${PWD} /organizations/fabric-ca/org2/tls-cert.pem
153
153
set +x
154
154
155
155
echo
156
156
echo " Register the org admin"
157
157
echo
158
158
set -x
159
- fabric-ca-client register --caname ca-org2 --id.name org2admin --id.secret org2adminpw --id.type admin --id.attrs ' "hf.Registrar.Roles=admin" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/org2/tls-cert.pem
159
+ fabric-ca-client register --caname ca-org2 --id.name org2admin --id.secret org2adminpw --id.type admin --tls.certfiles ${PWD} /organizations/fabric-ca/org2/tls-cert.pem
160
160
set +x
161
161
162
162
mkdir -p organizations/peerOrganizations/org2.example.com/peers
@@ -250,14 +250,14 @@ function createOrderer {
250
250
echo " Register orderer"
251
251
echo
252
252
set -x
253
- fabric-ca-client register --caname ca-orderer --id.name orderer --id.secret ordererpw --id.type orderer --id.attrs ' "hf.Registrar.Roles=orderer" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
253
+ fabric-ca-client register --caname ca-orderer --id.name orderer --id.secret ordererpw --id.type orderer --tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
254
254
set +x
255
255
256
256
echo
257
257
echo " Register the orderer admin"
258
258
echo
259
259
set -x
260
- fabric-ca-client register --caname ca-orderer --id.name ordererAdmin --id.secret ordererAdminpw --id.type admin --id.attrs ' "hf.Registrar.Roles=admin" ' -- tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
260
+ fabric-ca-client register --caname ca-orderer --id.name ordererAdmin --id.secret ordererAdminpw --id.type admin --tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
261
261
set +x
262
262
263
263
mkdir -p organizations/ordererOrganizations/example.com/orderers
@@ -269,7 +269,7 @@ function createOrderer {
269
269
echo " ## Generate the orderer msp"
270
270
echo
271
271
set -x
272
- fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp --csr.hosts orderer.example.com --tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
272
+ fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp --csr.hosts orderer.example.com --csr.hosts localhost -- tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
273
273
set +x
274
274
275
275
cp ${PWD} /organizations/ordererOrganizations/example.com/msp/config.yaml ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/config.yaml
@@ -278,7 +278,7 @@ function createOrderer {
278
278
echo " ## Generate the orderer-tls certificates"
279
279
echo
280
280
set -x
281
- fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls --enrollment.profile tls --csr.hosts orderer.example.com --tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
281
+ fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls --enrollment.profile tls --csr.hosts orderer.example.com --csr.hosts localhost -- tls.certfiles ${PWD} /organizations/fabric-ca/ordererOrg/tls-cert.pem
282
282
set +x
283
283
284
284
cp ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/* ${PWD} /organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt
0 commit comments