Forum Discussion
Jazz
Aug 10, 2022Nimbostratus
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?
Aug 11, 2022
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}'
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects