Skip to content
Snippets Groups Projects
Verified Commit 4f44a3eb authored by Štěpán Henek's avatar Štěpán Henek :bear:
Browse files

diagnostics: certs module update

parent 6861eba3
No related branches found
No related tags found
1 merge request!9Resolve "Add script(s) for generating diagnostics"
......@@ -9,15 +9,6 @@ run () {
opkg info cznic-cacert-bundle
md5sum $(opkg files cznic-cacert-bundle | sed -n '1!p')
# print /etc/ssl/certs/
ls -nl /etc/ssl/certs/*.crt
ls -nl /etc/ssl/certs/*.crt | wc -l
ls -nl /etc/ssl/certs/*.0
ls -nl /etc/ssl/certs/*.0 | wc -l
# compare certs with symlinks
find /etc/ssl/certs/*.0 -exec readlink {} \; | sort > /tmp/diagnostics-certs-links
find /etc/ssl/certs/*.crt | xargs -n1 basename | sort > /tmp/diagnostics-certs-crts
diff /tmp/diagnostics-certs-links /tmp/diagnostics-certs-crts | grep '^>\|^<'
rm /tmp/diagnostics-certs-links /tmp/diagnostics-certs-crts
# print certificates from /etc/ssl/certs/
ls -al /etc/ssl/certs/
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment