diff options
author | David Lam <david@thedavid.net> | 2020-01-16 01:15:40 -0800 |
---|---|---|
committer | David Lam <david@thedavid.net> | 2020-01-16 01:15:40 -0800 |
commit | 27b21c2a6262a8c383c783e98320746f22fe8f6f (patch) | |
tree | 0ed296736e6be508792aff4e64cd4117bbefd04a /modules/luci-base/root | |
parent | dbc5778228874534af55361506b39f0e1f700590 (diff) |
luci-base: add system cert bundle detection
Add detection mechanism for system cert CA bundle installed by the
ca-bundle package. Used by LuCI to detect whether the "Use system
certificates" certificate validation option should be enabled.
Signed-off-by: David Lam <david@thedavid.net>
Diffstat (limited to 'modules/luci-base/root')
-rw-r--r--[-rwxr-xr-x] | modules/luci-base/root/usr/libexec/rpcd/luci | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci index 56cb7bc85..75afd27a0 100755..100644 --- a/modules/luci-base/root/usr/libexec/rpcd/luci +++ b/modules/luci-base/root/usr/libexec/rpcd/luci @@ -216,6 +216,7 @@ local methods = { rv.sysntpd = fs.readlink("/usr/sbin/ntpd") and true rv.ipv6 = fs.access("/proc/net/ipv6_route") rv.dropbear = fs.access("/usr/sbin/dropbear") + rv.cabundle = fs.access("/etc/ssl/certs/ca-certificates.crt") local wifi_features = { "eap", "11n", "11ac", "11r", "11w", "acs", "sae", "owe", "suiteb192" } |