From b5b276bfcc23e2dec40deb3a63039bb75f70f416 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 6 Aug 2025 11:03:59 +0200 Subject: [PATCH] est_client: check if a cert is present inside the fwtool helper This was causing devices without a birt cert being present from doing a sysupgrade. Signed-off-by: John Crispin --- feeds/tip/cloud_discovery/files/usr/bin/est_client | 3 +++ 1 file changed, 3 insertions(+) diff --git a/feeds/tip/cloud_discovery/files/usr/bin/est_client b/feeds/tip/cloud_discovery/files/usr/bin/est_client index 535e2a7fa..a2a740475 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/est_client +++ b/feeds/tip/cloud_discovery/files/usr/bin/est_client @@ -139,6 +139,9 @@ function load_operational_ca() { } function fwtool() { + if (!fs.stat('/etc/ucentral/cert.pem')) + return 0; + let pipe = fs.popen(`openssl x509 -in /etc/ucentral/cert.pem -noout -issuer`); let issuer = pipe.read("all"); pipe.close();