17 lines
267 B
Bash
17 lines
267 B
Bash
#!/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/
|