Forum Discussion
MABreton
Sep 15, 2019Nimbostratus
How to get bundle certificates subcollection using f5-sdk
Hi, I'm trying to get the content of my certificate bundles using F5-sdk but I cannot find the way to load the subcollection. certificates = b.tm.sys.file.ssl_certs.get_collection()
for cert i...
MABreton
Dec 15, 2020Nimbostratus
Unfortunately I did not find a way with f5-sdk so I worked around the issue using "requests". In the example below, I excluded ca-bundle.crt.
if certificate.isBundle == 'true' and certificate.name != 'ca-bundle.crt':
r = session.get(certificate.bundleCertificatesReference['link'].replace('https://localhost', 'https://' + bigip_ip_address))
if r.status_code == 200:
for cert_bundle in r.json()['items']:
# Cert treatment here
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