diff options
author | Simon Rettberg | 2021-02-09 19:25:23 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-02-09 19:25:23 +0100 |
commit | ce4bc5ca8799cd438e91b9af835cfc4396abed0e (patch) | |
tree | 05dfb92604b22e397d2d7d3fecc9a9b4bf78f04e /core/modules/kiosk-chromium | |
parent | [hardware-stats] Add ID45 to status updates (diff) | |
download | mltk-ce4bc5ca8799cd438e91b9af835cfc4396abed0e.tar.gz mltk-ce4bc5ca8799cd438e91b9af835cfc4396abed0e.tar.xz mltk-ce4bc5ca8799cd438e91b9af835cfc4396abed0e.zip |
[kiosk-common/kiosk-chromium] Add system certs to cert store
References #3418
Diffstat (limited to 'core/modules/kiosk-chromium')
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium index cf9246a8..a98332df 100644 --- a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium +++ b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium @@ -9,6 +9,9 @@ if [ "$(whoami)" = "demo" ]; then mkdir -p "$HOME/.config/chromium/Default" fi +cert_to_nssdb /etc/ssl/certs/ "${HOME}/.pki/nssdb" & +nss_pid=$! + # Helper to decode URL-encoded strings # e.g. urldecode http%3A%2F%2Ffoobar.com -> http://foobar.com urldecode() { @@ -136,5 +139,8 @@ if [ -n "$SLX_BROWSER_INSECURE" ]; then chromium_args+=("--allow-running-insecure-content" "--ignore-certificate-errors") fi +# Wait until cert store is fully populated +wait $nss_pid + # finally exec to chromium exec chromium-browser "${chromium_args[@]}" |