Forum Discussion

jcrubaugh45_208's avatar
Apr 10, 2018

Python to find Virtual Server with Certificates

I'm trying to locate every VIP across my environment ( 18 F5 LTM's for this example ) where a specific certificate is being used. Does anyone have any guides for how to find this using Python. I don't seem to be able to find the SSL or ClientSSL or ServerSSL information when doing my queries. I'm wondering if my F5's being on version 12.2 HF2 is causing the issue. I'm new to Python and scripting so I'm sure I'm making mistakes, but this seems much more difficult than I was hoping.

 

my python is giving me simple errors like my attributes doesn't exist or my path is wrong. I'm pulling the path/attribute info directly from the SDK documentation.

 

Any additional guidance would be much appreciated.

 

  • never mind i finally found out how to get my list of certificates from mgmt.tm.sys.crypto.certs.get_collection()

     

    i guess i need to get better at my google searches :)

     

  • never mind i finally found out how to get my list of certificates from mgmt.tm.sys.crypto.certs.get_collection()

     

    i guess i need to get better at my google searches :)