blob: 015b2e66226f38b7b76c3ec504687147d5b52f74 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
files=`sudo ls /etc/snmp/tls/certs/ 2> /dev/null`;
if [ -n "$files" ]; then
sudo /usr/bin/net-snmp-cert showcerts --subject --fingerprint
else
echo "You don't have any certificates. Put it in '/etc/snmp/tls/certs/' folder."
fi
|