mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-10 04:39:55 +00:00
Add ability to use self-signed CAs passed via config.json
.
Connects-to: #601 Change-type: minor
This commit is contained in:
parent
e61e13b36d
commit
d2442d107a
9
entry.sh
9
entry.sh
@ -23,4 +23,13 @@ fi
|
||||
|
||||
export DBUS_SYSTEM_BUS_ADDRESS="unix:path=/mnt/root/run/dbus/system_bus_socket"
|
||||
|
||||
# Include self-signed CAs, should they exist
|
||||
if [ ! -z "${BALENA_ROOT_CA}" ]; then
|
||||
if [ ! -e '/etc/ssl/certs/balenaRootCA.pem' ]; then
|
||||
mkdir -p /usr/local/share/ca-certificates
|
||||
echo "${BALENA_ROOT_CA}" > /usr/local/share/ca-certificates/balenaRootCA.crt
|
||||
update-ca-certificates
|
||||
fi
|
||||
fi
|
||||
|
||||
exec node /usr/src/app/dist/app.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user