diff --git a/src/tls/cockpit-certificate-helper.in b/src/tls/cockpit-certificate-helper.in index e109bcd51a2..3a74cd3e3f7 100644 --- a/src/tls/cockpit-certificate-helper.in +++ b/src/tls/cockpit-certificate-helper.in @@ -14,11 +14,17 @@ install_cert() { # The certificate should be world-readable chmod a+r "${destination}" + + # Force flush to disk for embedded devices + sync "${destination}" } install_key() { local destination="${COCKPIT_WS_CERTS_D}/$1" mv -Z "$1" "${destination}" + + # Force flush to disk for embedded devices + sync "${destination}" } selfsign_sscg() {