From: Matthew Hagan Date: Sat, 16 Oct 2021 17:12:20 +0000 (+0100) Subject: luci-proto-openfortivpn: Correct server certificate SHA label X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=57936a40c32937d4bedfa6344868668af687bcc5;p=project%2Fluci.git luci-proto-openfortivpn: Correct server certificate SHA label According to the documentation[1], the SHA256 hash is used for the trusted-cert option, not SHA1. [1] https://github.com/adrienverge/openfortivpn/blob/master/doc/openfortivpn.1.in Signed-off-by: Matthew Hagan --- diff --git a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js index 1542c5ae6b..530eeea4ff 100644 --- a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js +++ b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js @@ -149,7 +149,7 @@ return network.registerProtocol('openfortivpn', { o.datatype = 'uinteger'; o.optional = true; - o = s.taboption('advanced', form.Value, 'trusted_cert', _("VPN Server's certificate SHA1 hash")); + o = s.taboption('advanced', form.Value, 'trusted_cert', _("VPN Server certificate's SHA256 hash")); o.datatype = 'and(hexstring,length(64))' o.optional = true;