Forum Discussion
Lingxu_217141
Nimbostratus
Oct 25, 2018How to read cert via F5 SDK in python ?
Hi All,
I am new to F5 iControl and iControlREST, but interested to do some auto work via iControlREST. I have a problem when try to read a existing ssl cert info by using F5 SDK. the code I wro...
Satoshi_Toyosa1
Oct 31, 2018Ret. Employee
Python version here. Use lower cases for Ssl_Certs (ssl_certs)
!/usr/bin/python
from f5.bigip import ManagementRoot
mgmt = ManagementRoot('192.168.184.40', 'admin', 'admin')
cert = mgmt.tm.sys.file.ssl_certs.get_collection()
for c in cert:
print('--- {}'.format(c.raw['name']))
for d in c.__dict__:
print(' {}: {}'.format(d, c.raw[d]))
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