summaryrefslogtreecommitdiff
path: root/src/init/vyos-router
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-11-21 22:05:49 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-11-22 01:11:03 +0100
commit0358f6c660e6130b94ca8c53ec7b34d796605dd8 (patch)
treec1d660215c5830372e812899c707b8f478fb46b7 /src/init/vyos-router
parent961eab48de35d1574e5efbbc43b3b57bfa09c93e (diff)
downloadvyos-1x-0358f6c660e6130b94ca8c53ec7b34d796605dd8.tar.gz
vyos-1x-0358f6c660e6130b94ca8c53ec7b34d796605dd8.zip
pki: T6809: Support system install of CA certificates
Diffstat (limited to 'src/init/vyos-router')
-rwxr-xr-xsrc/init/vyos-router6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router
index 8825cc16a..f8cc87507 100755
--- a/src/init/vyos-router
+++ b/src/init/vyos-router
@@ -471,6 +471,12 @@ start ()
touch /tmp/vyos.smoketest.debug
fi
+ # Cleanup PKI CAs
+ if [ -d /usr/local/share/ca-certificates/vyos ]; then
+ rm -f /usr/local/share/ca-certificates/vyos/*.crt
+ update-ca-certificates >/dev/null 2>&1
+ fi
+
log_action_begin_msg "Mounting VyOS Config"
# ensure the vyatta_configdir supports a large number of inodes since
# the config hierarchy is often inode-bound (instead of size).