luci-proto-openfortivpn: Correct server certificate SHA label 5448/head
authorMatthew Hagan <mnhagan88@gmail.com>
Sat, 16 Oct 2021 17:12:20 +0000 (18:12 +0100)
committerMatthew Hagan <mnhagan88@gmail.com>
Wed, 10 Aug 2022 22:03:58 +0000 (23:03 +0100)
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 <mnhagan88@gmail.com>
protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js

index 1542c5ae6b19ef754952c188870a7f859ab2461a..530eeea4fff28c1f3f8f6b82d044ea405c74d8b3 100644 (file)
@@ -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;