blob: a630dff87022b110d02afdbe545617f779254e4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
type: txt
help: Defines the server certificate fingerprint or key-file name.
allowed: if sudo [ -d /etc/snmp/tls/certs ]; then
sudo ls /etc/snmp/tls/certs 2> /dev/null
else
sudo ls /config/snmp/tls/certs 2> /dev/null
fi
syntax:expression: pattern $VAR(@) "^[0-9A-F]{2}(:[0-9A-F]{2}){19}$" ||
exec "if sudo [ -f /etc/snmp/tls/certs/$VAR(@) -o -f /config/snmp/tls/certs/$VAR(@) ]; \
then \
exit 0; \
else \
exit 1; \
fi" ; "value can be finger print key or filename in /config/snmp/tls/certs/ folder"
|