summaryrefslogtreecommitdiff
path: root/script/shell/show_trust_certs_info.sh
blob: 0710a88546010d8f278418f42584500215e6cd81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/