增加 show_trust_certs_info.sh 脚本,用于校验毕方下发的可信证书列表
This commit is contained in:
@@ -4,3 +4,4 @@ install(FILES service/tfe-env.service DESTINATION /usr/lib/systemd/system/ COMPO
|
||||
install(FILES sysctl/80-tfe.conf DESTINATION /etc/sysctl.d/ COMPONENT Profile)
|
||||
install(FILES tmpfiles/tfe.conf DESTINATION /usr/lib/tmpfiles.d/ COMPONENT Profile)
|
||||
install(FILES service/tfe-env-config DESTINATION /etc/sysconfig/ COMPONENT Profile)
|
||||
install(FILES shell/show_trust_certs_info.sh DESTINATION /opt/tsg/tfe/shell/ COMPONENT Program)
|
||||
|
||||
16
script/shell/show_trust_certs_info.sh
Normal file
16
script/shell/show_trust_certs_info.sh
Normal file
@@ -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/
|
||||
Reference in New Issue
Block a user