Jazz
Aug 10, 2022Nimbostratus
Solved
SSL-Cert
How to verify the SSL cert whether it's being used or not through CLI command?
- Aug 10, 2022
Hi Jazz,
If you execute the commands in tmos, you will get this error. Can you run it in bash?
Hi Jazz,
If you execute the commands in tmos, you will get this error. Can you run it in bash?
Hi Jazz,
cd /var/tmp
# Binded certificates on ltm ssl profiles
tmsh list ltm profile | grep -E " cert| chain" | awk '{print $2}' | sort -u >> templist.txt
# Binded certificates on apm
tmsh list apm | grep -E "sp-certificate|sp-decryption-cert|idp-certificate|sp-certificate" | awk '{print $2}' | sort -u >> templist.txt
# Ssl certificates on F5
tmsh list sys file ssl-cert | grep ssl-cert | awk '{print $4}' | sort -u >> certlist.txt
cat templist.txt | sort -u > bindedlist.txt
diff bindedlist.txt certlist.txt | grep ">" | awk '{print $2}'