summaryrefslogtreecommitdiff
path: root/script/shell
diff options
context:
space:
mode:
Diffstat (limited to 'script/shell')
-rw-r--r--script/shell/show_trust_certs_info.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/script/shell/show_trust_certs_info.sh b/script/shell/show_trust_certs_info.sh
new file mode 100644
index 0000000..0710a88
--- /dev/null
+++ b/script/shell/show_trust_certs_info.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+show_trust_certs_info()
+{
+ cd $1
+ for file in `ls *CERT*`
+ do
+ if [ -f $file ]; then
+ echo $file
+ openssl x509 -noout -in $file -subject -issuer -fingerprint -sha1
+ echo ""
+ fi
+ done
+}
+
+show_trust_certs_info /opt/tsg/tfe/pangu_files/