Forum Discussion
8 Replies
Sort By
- Vijay_ECirrus
(tmos.ltm) list profile client-ssl cert-key-chain
(tmos) list sys crypto cert
One or both may serve your requirement. Note: 1st command is executed from ltm module.
We pulled all the cert information from the REST API, has all the information there.
- gdoyleCirrostratus
Wondering if anyone else has any suggestions on this? From what I've been able to find I can only pull the certificates on the Common partition.
- arpydaysNimbostratus
In tmsh, if you cd / and add recursive it will look through all partitions,
cd /; list sys crypto recursive cert | grep '^sys\|expiration'
cheers
the url does not go anywhere
- Jason_NanceNimbostratus
Python example:
!/usr/bin/env python3 import pytz from dateutil.parser import parse from f5.bigip import ManagementRoot mgmt = ManagementRoot('hostname', 'username', 'password') tz = pytz.timezone('America/Chicago') for cert in mgmt.tm.sys.file.ssl_certs.get_collection(): expiration = parse(cert.expirationString) print("Certificate '{}' expires {}".format( cert.fullPath, expiration.astimezone(tz), ))
- rbenford2311Nimbostratus
Try this
tmsh list sys crypto recursive cert | grep '^sys\|expiration' >> <filename>
- SubrunCirrostratus
Along with this list can we filter which SSL Profile / VIP it is using ?
tmsh list sys crypto recursive cert | grep '^sys\|expiration' >> <filename>