Skip to content

Commit

Permalink
fix(web): copy client in addition to server certs
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
  • Loading branch information
glimchb committed Jun 10, 2024
1 parent 25a1b90 commit 484982c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ services:
build:
context: sztp-server
volumes:
- certs:/certs
- server-certs:/certs/server
- client-certs:/certs/client
user: "0"
entrypoint: /bin/bash
command: >
-c '
set -e
cp sztpd1/sbi/end-entity/private_key.pem sztpd1/sbi/end-entity/my_cert.pem /tmp/ta_cert_chain.pem /certs/
cp sztpd1/sbi/end-entity/private_key.pem sztpd1/sbi/end-entity/my_cert.pem /tmp/ta_cert_chain.pem /certs/server/
cp client/end-entity/private_key.pem client/end-entity/my_cert.pem /opi.pem /certs/client/
'
web:
Expand All @@ -99,7 +101,7 @@ services:
setup-cert:
condition: service_completed_successfully
volumes:
- certs:/certs
- server-certs:/certs
- ./sztp-server/images:/usr/local/apache2/htdocs
ports:
- 443:443
Expand Down Expand Up @@ -160,7 +162,8 @@ services:
- opi

volumes:
certs:
server-certs:
client-certs:
dhcp-leases-folder:

networks:
Expand Down

0 comments on commit 484982c

Please sign in to comment.