-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change CA ports in test-network-nano-bash
Signed-off-by: Chris Elder <[email protected]>
- Loading branch information
Showing
4 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,74 +34,74 @@ export org2_tls=${PWD}/data_ca/org2ca/ca/ca-cert.pem | |
###################################################################################### | ||
|
||
# Enroll CA Admin for ordererca | ||
createEnrollment "7052" "admin" "adminpw" "" "${orderer_org_dir}/ca" "${orderer_org_tls}" | ||
createEnrollment "5052" "admin" "adminpw" "" "${orderer_org_dir}/ca" "${orderer_org_tls}" | ||
|
||
# Enroll CA Admin for org1ca | ||
createEnrollment "7053" "admin" "adminpw" "org1" "${org1_dir}/ca" "${org1_tls}" | ||
createEnrollment "5053" "admin" "adminpw" "org1" "${org1_dir}/ca" "${org1_tls}" | ||
|
||
# Enroll CA Admin for org2ca | ||
createEnrollment "7054" "admin" "adminpw" "org2" "${org2_dir}/ca" "${org2_tls}" | ||
createEnrollment "5054" "admin" "adminpw" "org2" "${org2_dir}/ca" "${org2_tls}" | ||
|
||
|
||
###################################################################################### | ||
# Create admin and user certificates for the Organizations | ||
###################################################################################### | ||
|
||
# Enroll Admin certificate for the ordering service org | ||
registerAndEnroll "7052" "osadmin" "osadminpw" "admin" "" "${orderer_org_dir}/users/[email protected]" "${orderer_org_dir}" "${orderer_org_tls}" | ||
registerAndEnroll "5052" "osadmin" "osadminpw" "admin" "" "${orderer_org_dir}/users/[email protected]" "${orderer_org_dir}" "${orderer_org_tls}" | ||
|
||
# Enroll Admin certificate for org1 | ||
registerAndEnroll "7053" "org1admin" "org1adminpw" "admin" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}" | ||
registerAndEnroll "5053" "org1admin" "org1adminpw" "admin" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}" | ||
|
||
# Enroll User certificate for org1 | ||
registerAndEnroll "7053" "org1user1" "org1user1pw" "client" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}" | ||
registerAndEnroll "5053" "org1user1" "org1user1pw" "client" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}" | ||
|
||
# Enroll Admin certificate for org2 | ||
registerAndEnroll "7054" "org2admin" "org2adminpw" "admin" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}" | ||
registerAndEnroll "5054" "org2admin" "org2adminpw" "admin" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}" | ||
|
||
# Enroll User certificate for org1 | ||
registerAndEnroll "7054" "org2user1" "org2user1pw" "client" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}" | ||
registerAndEnroll "5054" "org2user1" "org2user1pw" "client" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}" | ||
|
||
###################################################################################### | ||
# Create the certificates for the Ordering Organization | ||
###################################################################################### | ||
|
||
# Create enrollment and TLS certificates for orderer1 | ||
registerAndEnroll "7052" "orderer1" "orderer1pw" "orderer" "" "${orderer1_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
registerAndEnroll "5052" "orderer1" "orderer1pw" "orderer" "" "${orderer1_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
|
||
# Create enrollment and TLS certificates for orderer2 | ||
registerAndEnroll "7052" "orderer2" "orderer2pw" "orderer" "" "${orderer2_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
registerAndEnroll "5052" "orderer2" "orderer2pw" "orderer" "" "${orderer2_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
|
||
# Create enrollment and TLS certificates for orderer3 | ||
registerAndEnroll "7052" "orderer3" "orderer3pw" "orderer" "" "${orderer3_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
registerAndEnroll "5052" "orderer3" "orderer3pw" "orderer" "" "${orderer3_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
|
||
# Create enrollment and TLS certificates for orderer4 | ||
registerAndEnroll "7052" "orderer4" "orderer4pw" "orderer" "" "${orderer4_dir}" "${orderer_org}" "${orderer_org_tls}" | ||
registerAndEnroll "5052" "orderer4" "orderer4pw" "orderer" "" "${orderer4_dir}" "${orderer_org}" "${orderer_org_tls}" | ||
|
||
# Create enrollment and TLS certificates for orderer5 | ||
registerAndEnroll "7052" "orderer5" "orderer5pw" "orderer" "" "${orderer5_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
registerAndEnroll "5052" "orderer5" "orderer5pw" "orderer" "" "${orderer5_dir}" "${orderer_org_dir}" "${orderer_org_tls}" | ||
|
||
|
||
###################################################################################### | ||
# Create the certificates for Org1 | ||
###################################################################################### | ||
|
||
# Create enrollment and TLS certificates for peer0org1 | ||
registerAndEnroll "7053" "org1peer0" "org1peer0pw" "peer" "org1" "${peer0org1_dir}" "${org1_dir}" "${org1_tls}" | ||
registerAndEnroll "5053" "org1peer0" "org1peer0pw" "peer" "org1" "${peer0org1_dir}" "${org1_dir}" "${org1_tls}" | ||
|
||
# Create enrollment and TLS certificates for peer1org1 | ||
registerAndEnroll "7053" "org1peer1" "org1peer1pw" "peer" "org1" "${peer1org1_dir}" "${org1_dir}" "${org1_tls}" | ||
registerAndEnroll "5053" "org1peer1" "org1peer1pw" "peer" "org1" "${peer1org1_dir}" "${org1_dir}" "${org1_tls}" | ||
|
||
|
||
###################################################################################### | ||
# Create the certificates for Org2 | ||
###################################################################################### | ||
|
||
# Create enrollment and TLS certificates for peer0org2 | ||
registerAndEnroll "7054" "org2peer0" "org2peer0pw" "peer" "org2" "${peer0org2_dir}" "${org2_dir}" "${org2_tls}" | ||
registerAndEnroll "5054" "org2peer0" "org2peer0pw" "peer" "org2" "${peer0org2_dir}" "${org2_dir}" "${org2_tls}" | ||
|
||
# Create enrollment and TLS certificates for peer1org2 | ||
registerAndEnroll "7054" "org2peer1" "org2peer1pw" "peer" "org2" "${peer1org2_dir}" "${org2_dir}" "${org2_tls}" | ||
registerAndEnroll "5054" "org2peer1" "org2peer1pw" "peer" "org2" "${peer1org2_dir}" "${org2_dir}" "${org2_tls}" | ||
|
||
|
||
###################################################################################### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters