on 14-Jan-201618:30 - edited on 05-Jun-202323:00 by JimmyPackets
Problem this snippet solves:
Having had numerous occasions where I needed to figure out where a particular SSL profile was assigned and seeing a few similar questions here on DC, I decided to make use of PowerShell and iControlRest to get that data for me. This script allows you to grab all the VIPs on the box and list the SSL profiles (both client and server) associated with them.
How to use this snippet:
You will need to be on BIG-IP v11.4 or newer, as that's when iControlRest was introduced.
You will also need a Windows machine and PowerShell v3 or newer (v4 or v5).
Paste this code into your PowerShell console and then run it with at least the hostname (or IP) of your BIG-IP, and it will prompt you for credentials and return the list of VIPs and SSL profiles.
Note: If you use an IP address, you should really include the
flag as well, since it won't work by default without a valid cert