diff --git a/e2e/__snapshots__/fablo-config-hlf1.4-1org-1chaincode-raft.json.test.ts.snap b/e2e/__snapshots__/fablo-config-hlf1.4-1org-1chaincode-raft.json.test.ts.snap index 5a556a57..74be6c0d 100644 --- a/e2e/__snapshots__/fablo-config-hlf1.4-1org-1chaincode-raft.json.test.ts.snap +++ b/e2e/__snapshots__/fablo-config-hlf1.4-1org-1chaincode-raft.json.test.ts.snap @@ -235,7 +235,7 @@ exports[`samples/fablo-config-hlf1.4-1org-1chaincode-raft.json should create pro }, \\"certificateAuthorities\\": { \\"ca.orderer.example.com\\": { - \\"url\\": \\"http://localhost:7020\\", + \\"url\\": \\"https://localhost:7020\\", \\"caName\\": \\"ca.orderer.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/orderer.example.com/ca/ca.orderer.example.com-cert.pem\\" @@ -280,7 +280,7 @@ peers: ssl-target-name-override: peer1.org1.example.com certificateAuthorities: ca.orderer.example.com: - url: http://localhost:7020 + url: https://localhost:7020 caName: ca.orderer.example.com tlsCACerts: path: >- @@ -332,7 +332,7 @@ exports[`samples/fablo-config-hlf1.4-1org-1chaincode-raft.json should create pro }, \\"certificateAuthorities\\": { \\"ca.org1.example.com\\": { - \\"url\\": \\"http://localhost:7040\\", + \\"url\\": \\"https://localhost:7040\\", \\"caName\\": \\"ca.org1.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem\\" @@ -377,7 +377,7 @@ peers: ssl-target-name-override: peer1.org1.example.com certificateAuthorities: ca.org1.example.com: - url: http://localhost:7040 + url: https://localhost:7040 caName: ca.org1.example.com tlsCACerts: path: >- diff --git a/e2e/__snapshots__/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json.test.ts.snap b/e2e/__snapshots__/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json.test.ts.snap index dea28f9e..61a95e2e 100644 --- a/e2e/__snapshots__/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json.test.ts.snap +++ b/e2e/__snapshots__/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json.test.ts.snap @@ -317,7 +317,7 @@ exports[`samples/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json should create p }, \\"certificateAuthorities\\": { \\"ca.orderer.example.com\\": { - \\"url\\": \\"http://localhost:7020\\", + \\"url\\": \\"https://localhost:7020\\", \\"caName\\": \\"ca.orderer.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/orderer.example.com/ca/ca.orderer.example.com-cert.pem\\" @@ -378,7 +378,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.orderer.example.com: - url: http://localhost:7020 + url: https://localhost:7020 caName: ca.orderer.example.com tlsCACerts: path: >- @@ -450,7 +450,7 @@ exports[`samples/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json should create p }, \\"certificateAuthorities\\": { \\"ca.org1.example.com\\": { - \\"url\\": \\"http://localhost:7040\\", + \\"url\\": \\"https://localhost:7040\\", \\"caName\\": \\"ca.org1.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem\\" @@ -511,7 +511,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.org1.example.com: - url: http://localhost:7040 + url: https://localhost:7040 caName: ca.org1.example.com tlsCACerts: path: >- @@ -583,7 +583,7 @@ exports[`samples/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json should create p }, \\"certificateAuthorities\\": { \\"ca.org2.example.com\\": { - \\"url\\": \\"http://localhost:7060\\", + \\"url\\": \\"https://localhost:7060\\", \\"caName\\": \\"ca.org2.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem\\" @@ -644,7 +644,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.org2.example.com: - url: http://localhost:7060 + url: https://localhost:7060 caName: ca.org2.example.com tlsCACerts: path: >- diff --git a/e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.test.ts.snap b/e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.test.ts.snap index 4c703b5d..841bb38e 100644 --- a/e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.test.ts.snap +++ b/e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.test.ts.snap @@ -222,7 +222,7 @@ exports[`samples/fablo-config-hlf2-1org-1chaincode-raft-explorer.json should cre }, \\"certificateAuthorities\\": { \\"ca.orderer.example.com\\": { - \\"url\\": \\"http://localhost:7020\\", + \\"url\\": \\"https://localhost:7020\\", \\"caName\\": \\"ca.orderer.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/orderer.example.com/ca/ca.orderer.example.com-cert.pem\\" @@ -259,7 +259,7 @@ peers: ssl-target-name-override: peer0.org1.example.com certificateAuthorities: ca.orderer.example.com: - url: http://localhost:7020 + url: https://localhost:7020 caName: ca.orderer.example.com tlsCACerts: path: >- @@ -301,7 +301,7 @@ exports[`samples/fablo-config-hlf2-1org-1chaincode-raft-explorer.json should cre }, \\"certificateAuthorities\\": { \\"ca.org1.example.com\\": { - \\"url\\": \\"http://localhost:7040\\", + \\"url\\": \\"https://localhost:7040\\", \\"caName\\": \\"ca.org1.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem\\" @@ -338,7 +338,7 @@ peers: ssl-target-name-override: peer0.org1.example.com certificateAuthorities: ca.org1.example.com: - url: http://localhost:7040 + url: https://localhost:7040 caName: ca.org1.example.com tlsCACerts: path: >- diff --git a/e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.test.ts.snap b/e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.test.ts.snap index c8e43da3..68973e62 100644 --- a/e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.test.ts.snap +++ b/e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.test.ts.snap @@ -408,7 +408,7 @@ exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml should create pro }, \\"certificateAuthorities\\": { \\"ca.orderer1.com\\": { - \\"url\\": \\"http://localhost:7020\\", + \\"url\\": \\"https://localhost:7020\\", \\"caName\\": \\"ca.orderer1.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/orderer1.com/ca/ca.orderer1.com-cert.pem\\" @@ -469,7 +469,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.orderer1.com: - url: http://localhost:7020 + url: https://localhost:7020 caName: ca.orderer1.com tlsCACerts: path: >- @@ -541,7 +541,7 @@ exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml should create pro }, \\"certificateAuthorities\\": { \\"ca.orderer2.com\\": { - \\"url\\": \\"http://localhost:7040\\", + \\"url\\": \\"https://localhost:7040\\", \\"caName\\": \\"ca.orderer2.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/orderer2.com/ca/ca.orderer2.com-cert.pem\\" @@ -602,7 +602,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.orderer2.com: - url: http://localhost:7040 + url: https://localhost:7040 caName: ca.orderer2.com tlsCACerts: path: >- @@ -674,7 +674,7 @@ exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml should create pro }, \\"certificateAuthorities\\": { \\"ca.org1.example.com\\": { - \\"url\\": \\"http://localhost:7060\\", + \\"url\\": \\"https://localhost:7060\\", \\"caName\\": \\"ca.org1.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem\\" @@ -735,7 +735,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.org1.example.com: - url: http://localhost:7060 + url: https://localhost:7060 caName: ca.org1.example.com tlsCACerts: path: >- @@ -807,7 +807,7 @@ exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml should create pro }, \\"certificateAuthorities\\": { \\"ca.org2.example.com\\": { - \\"url\\": \\"http://localhost:7080\\", + \\"url\\": \\"https://localhost:7080\\", \\"caName\\": \\"ca.org2.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem\\" @@ -868,7 +868,7 @@ peers: ssl-target-name-override: peer1.org2.example.com certificateAuthorities: ca.org2.example.com: - url: http://localhost:7080 + url: https://localhost:7080 caName: ca.org2.example.com tlsCACerts: path: >- diff --git a/e2e/__snapshots__/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json.test.ts.snap b/e2e/__snapshots__/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json.test.ts.snap index cd7e1db7..ddb52d89 100644 --- a/e2e/__snapshots__/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json.test.ts.snap +++ b/e2e/__snapshots__/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json.test.ts.snap @@ -423,7 +423,7 @@ exports[`samples/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json should cr }, \\"certificateAuthorities\\": { \\"ca.orderer.example.com\\": { - \\"url\\": \\"http://localhost:7020\\", + \\"url\\": \\"https://localhost:7020\\", \\"caName\\": \\"ca.orderer.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/orderer.example.com/ca/ca.orderer.example.com-cert.pem\\" @@ -500,7 +500,7 @@ peers: ssl-target-name-override: peer1.org3.example.com certificateAuthorities: ca.orderer.example.com: - url: http://localhost:7020 + url: https://localhost:7020 caName: ca.orderer.example.com tlsCACerts: path: >- @@ -592,7 +592,7 @@ exports[`samples/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json should cr }, \\"certificateAuthorities\\": { \\"ca.org1.example.com\\": { - \\"url\\": \\"http://localhost:7040\\", + \\"url\\": \\"https://localhost:7040\\", \\"caName\\": \\"ca.org1.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem\\" @@ -669,7 +669,7 @@ peers: ssl-target-name-override: peer1.org3.example.com certificateAuthorities: ca.org1.example.com: - url: http://localhost:7040 + url: https://localhost:7040 caName: ca.org1.example.com tlsCACerts: path: >- @@ -761,7 +761,7 @@ exports[`samples/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json should cr }, \\"certificateAuthorities\\": { \\"ca.org2.example.com\\": { - \\"url\\": \\"http://localhost:7060\\", + \\"url\\": \\"https://localhost:7060\\", \\"caName\\": \\"ca.org2.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem\\" @@ -838,7 +838,7 @@ peers: ssl-target-name-override: peer1.org3.example.com certificateAuthorities: ca.org2.example.com: - url: http://localhost:7060 + url: https://localhost:7060 caName: ca.org2.example.com tlsCACerts: path: >- @@ -930,7 +930,7 @@ exports[`samples/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json should cr }, \\"certificateAuthorities\\": { \\"ca.org3.example.com\\": { - \\"url\\": \\"http://localhost:7080\\", + \\"url\\": \\"https://localhost:7080\\", \\"caName\\": \\"ca.org3.example.com\\", \\"tlsCACerts\\": { \\"path\\": \\"/samples/fablo-target/fabric-config/crypto-config/peerOrganizations/org3.example.com/ca/ca.org3.example.com-cert.pem\\" @@ -1007,7 +1007,7 @@ peers: ssl-target-name-override: peer1.org3.example.com certificateAuthorities: ca.org3.example.com: - url: http://localhost:7080 + url: https://localhost:7080 caName: ca.org3.example.com tlsCACerts: path: >- diff --git a/src/types/ConnectionProfile.ts b/src/types/ConnectionProfile.ts index fb4dc911..865b1663 100644 --- a/src/types/ConnectionProfile.ts +++ b/src/types/ConnectionProfile.ts @@ -155,7 +155,7 @@ function certificateAuthorities( if (isTls) { return { [org.ca.address]: { - url: `http://localhost:${org.ca.exposePort}`, + url: `https://localhost:${org.ca.exposePort}`, caName: org.ca.address, tlsCACerts: { path: `${rootPath}/peerOrganizations/${org.domain}/ca/${org.ca.address}-cert.pem`,