Forum Discussion
Joe_Curl_105786
Nimbostratus
Oct 31, 2013SSL Certificate Report
We are trying to run a report using Powershell to identify the certificates we have when they expire and what VIP the SSL profile is tied to. We have gotten the parts of listing the certificates and...
mhite_60883
Cirrocumulus
Oct 31, 2013There aren't any API calls that do exactly what you want. You have to piece the data together yourself. For example, grab the list of all certificates. Then grab the list of all SSL profiles. Then grab the list of certificates associated with each profile. Then grab then the list of all virtual servers. Then grab what profiles are associated with virtual servers... etc. etc. Then you have to piece all that together into a report. ;)
- mhite_60883Nov 01, 2013
Cirrocumulus
Roughly speaking, the psuedo code is something like this: - Set recursive query state to enabled - Switch to / folder - Retrieve certificate list using Management.KeyCertificate.get_certificate_list() - Retrieve virtual server list using LocalLB.VirtualServer.get_list() - Retrieve virtual server profile list of virtual servers retrieved in previous step using LocalLB.VirtualServer.get_profile(() - Retrieve client SSL profiles using LocalLB.ProfileClientSSL.get_list() - Retrieve certificate associated with client SSL profiles using LocalLB.ProfileClientSSL.get_certificate_file_v2() With the above information, you now have enough information to form the proper data relationships and generate a report. There's a bit of data mangling you'll need to do on your own to create the required associations, but it's doable.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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