Skip to content

Commit

Permalink
Merge pull request #87 from stm-blockchain/cleaning/clean-unused-files
Browse files Browse the repository at this point in the history
#85 Some more cleanup
  • Loading branch information
anilhelvaci authored Feb 21, 2022
2 parents ebea192 + 64d940b commit 5aa93ce
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sample-conf-files/startOrderer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
printf "\nCreate Org1"
printf "\nTLS Init"
curl --header "Content-Type: application/json" --request POST \
--data '{"userName":"tls-ca-admin","password":"tls-ca-adminpw", "port":"7052", "isTls": true, "orgName": "Org1", "csrHosts": "0.0.0.0,*.Org1.com", "adminName": "org-admin", "adminSecret": "org-adminpw"}' \
http://localhost:5000/initCa

printf "\nOrg Ca Init"
curl --header "Content-Type: application/json" --request POST \
--data '{"userName":"org-ca-admin","password":"org-ca-adminpw", "port":"7053", "isTls": false, "orgName": "Org1","csrHosts":"0.0.0.0,*.Org1.com", "adminName": "org-admin", "adminSecret": "org-adminpw"}' \
http://localhost:5000/initCa

printf "\nOrderer Init"
curl --header "Content-Type: application/json" --request POST \
--data '{"userName":"orderer1","password":"orderer1pw", "port":7050, "csrHosts": "0.0.0.0,*.Org1.com", "orgName": "Org1", "adminName": "osn-admin1", "adminPw":"osn-admin1pw"}' \
http://localhost:5000/initOrderer

cp $HOME/ttz/Org1/msp/tlscacerts/tls-ca-cert.pem $HOME/ttz/orderers/Org1-tls-ca-cert.pem

0 comments on commit 5aa93ce

Please sign in to comment.