From 1207a713081f8dae7fdfe0a5118748c53c5d856b Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Fri, 29 Apr 2016 17:25:45 -0400 Subject: [PATCH] Allow adding extra CA certificates to the system --- conf/init/create_certs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/init/create_certs.sh b/conf/init/create_certs.sh index 6cbb9c748..37b528ee3 100755 --- a/conf/init/create_certs.sh +++ b/conf/init/create_certs.sh @@ -7,4 +7,9 @@ cp mitm-key.pem /conf/mitm.key cp mitm.pem /conf/mitm.cert cp mitm.pem /usr/local/share/ca-certificates/mitm.crt +# Add extra trusted certificates +if [ -d /conf/stack/extra_ca_certs ]; then + cp /conf/stack/extra_ca_certs/* /usr/local/share/ca-certificates/ +fi + update-ca-certificates