Skip to content

Commit

Permalink
FAB-1338: Fix configs after rename
Browse files Browse the repository at this point in the history
This updates the configs such that the server
and client can connect.

Change-Id: Ie7e8f66109daed90a720e7dac28651b9b487e4a9
Signed-off-by: Latitia M Haskins <[email protected]>
  • Loading branch information
lhaskins committed Jan 19, 2017
1 parent 8894989 commit 79a2558
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CA_CERTIFICATE=ec.pem
CA_KEY_CERTIFICATE=ec-key.pem
FABRIC_CA_CONFIG=config.json
FABRIC_CA_CONFIG=server-config.json
CSR_CONFIG=csr.json
4 changes: 4 additions & 0 deletions docker/docker-compose-fabric-ca.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
fabric-ca:
image: hyperledger/fabric-ca
container_name: fabric-ca
ports:
- "8888:8888"
environment:
Expand All @@ -13,6 +14,7 @@ fabric-ca:

admin-client:
image: hyperledger/fabric-ca
container_name: admin-client
environment:
- CSR_CONFIG=${CSR_CONFIG}
volumes:
Expand All @@ -24,6 +26,7 @@ admin-client:

sdk-client:
image: hyperledger/fabric-ca
container_name: sdk-client
environment:
- CSR_CONFIG=${CSR_CONFIG}
volumes:
Expand All @@ -35,6 +38,7 @@ sdk-client:

bob-client:
image: hyperledger/fabric-ca
container_name: bob-client
environment:
- CSR_CONFIG=${CSR_CONFIG}
volumes:
Expand Down
4 changes: 0 additions & 4 deletions images/fabric-ca/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ COPY payload/fabric-ca /usr/local/bin

# Copy the configuration files
ADD payload/sampleconfig.tar.bz2 $FABRIC_CA_HOME
#COPY payload/server-config.json /config/server-config.json
#COPY payload/server-config-psql.json /config/server-config-psql.json
#COPY payload/.json /config/csr.json
#COPY payload/client-config.json /etc/hyperledger/fabric-ca/client-config.json

# Copy the same certificates that are currently hardcoded into the peers
COPY payload/root.pem /.fabric-ca/root.pem
Expand Down
6 changes: 3 additions & 3 deletions images/fabric-ca/config/client-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ca_certfiles":["/root/.fabric-ca/root.pem"],
"client":{"keyfile":"/root/.fabric-ca/tls_client-key.pem",
"certfile":"/root/.fabric-ca/tls_client-cert.pem"}
"ca_certfiles":["/.fabric-ca/root.pem"],
"client":{"keyfile":"/.fabric-ca/tls_client-key.pem",
"certfile":"/.fabric-ca/tls_client-cert.pem"}
}
25 changes: 25 additions & 0 deletions images/fabric-ca/config/server-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"tls_disable":true,
"ca_cert":"/.fabric-ca/ec.pem",
"ca_key":"/.fabric-ca/ec-key.pem",
"users": {
"admin": {
"pass": "adminpw",
"type": "client",
"group": "bank_a",
"attrs": [{"name":"hf.Registrar.Roles","value":"client,peer,validator,auditor"}, {"name":"hf.Registrar.DelegateRoles", "value": "client"}]
}
},
"groups": {
"banks_and_institutions": {
"banks": ["bank_a", "bank_b", "bank_c"],
"institutions": ["institution_a"]
}
},
"signing": {
"default": {
"usages": ["cert sign"],
"expiry": "8000h"
}
}
}

0 comments on commit 79a2558

Please sign in to comment.