Hello,
I have created certificates for my ChirpStack Docker container by using these instructions and my Docker directory contains the following structure
- root
- certs (from certificate script)
- ca
- chirpstack-application-server
- …
- configuration (from GitHub)
- chirpstack-application-server
- …
- certs (from certificate script)
I have added - ./certs:/certs
to the volumes
of each service in docker-compose.yml
version: "3"
services:
chirpstack-network-server:
image: chirpstack/chirpstack-network-server:3
volumes:
- ./configuration/chirpstack-network-server:/etc/chirpstack-network-server
- ./certs:/certs
depends_on:
- postgresql
- mosquitto
chirpstack-application-server:
image: chirpstack/chirpstack-application-server:3
ports:
- 8580:8080
volumes:
- ./configuration/chirpstack-application-server:/etc/chirpstack-application-server
- ./certs:/certs
depends_on:
- chirpstack-network-server
chirpstack-gateway-bridge:
image: chirpstack/chirpstack-gateway-bridge:3
ports:
- 8570:1700/udp
volumes:
- ./configuration/chirpstack-gateway-bridge:/etc/chirpstack-gateway-bridge
- ./certs:/certs
depends_on:
- mosquitto
...
And I have changed chirpstack-application-server.toml
in configuration/chirpstack-application-server
and chirpstack-network-server
:
network
[network_server.api]
ca_cert="certs/ca/ca.pem"
tls_cert="certs/chirpstack-network-server/api/server/chirpstack-network-server-api-server.pem"
tls_key="certs/chirpstack-network-server/api/server/chirpstack-network-server-api-server-key.pem"
application
[application_server.api]
public_host="chirpstack-application-server:8001"
ca_cert="certs/ca/ca.pem"
tls_cert="certs/chirpstack-application-server/api/server/chirpstack-application-server-api-server.pem"
tls_key="certs/chirpstack-application-server/api/server/chirpstack-application-server-api-server-key.pem"
js_ca_cert="certs/ca/ca.pem"
js_tls_cert="certs/chirpstack-application-server/join-api/server/chirpstack-application-server-join-api-server.pem"
js_tls_key="certs/chirpstack-application-server/join-api/server/chirpstack-application-server-join-api-server-key.pem"
Now I start the Docker container by running docker-compose up
and log in with my account to open the network server and to add a TLS certificate.
- I copied the content from
certs/ca/ca.pem
into both fieldsCA certificate
- I copied the content from
certs\chirpstack-application-server\api\client\chirpstack-application-server-api-client.pem
into the fieldTLS certificate
(Application Server → Network Server) - I copied the content from
certs\chirpstack-application-server\api\client\chirpstack-application-server-api-client-key.pem
into the fieldTLS key
(Application Server → Network Server) - I copied the content from
certs\chirpstack-network-server\api\client\chirpstack-network-server-api-client.pem
into the fieldTLS certificate
(Network Server → Application Server) - I copied the content from
certs\chirpstack-network-server\api\client\chirpstack-network-server-api-client-key.pem
into the fieldTLS key
(Network Server → Application Server)
And I got the following error:
What is wrong with the configuration? Did I mix up the keys?