Forum Discussion
command to see SSL cert in TMSH
cjunior's solution is solid if you are looking for the ssl profile. By object, the ssl profile is attached to the virtual, and the cert/key file object is attached to the ssl profile. So if you want to see the certificate file object itself, you'd need to write a tmsh script to map the objects for you. There is also a more generic config searching tool in the codeshare, but it will likely need to be modified as the structural changes with multiple certs on a vip in tmsh since it was written won't be as helpful as it used to be. For example, my testcert fileobject, ssl profile, attached to a vip, results in:
root@(localhost)(cfg-sync Standalone)(Active)(/Common)(tmos) findconf testcert
found 11 matches in 184 configuration objects
cert-key-chain : testcert cert-key-chain testcert
cert: testcert.crt
key: testcert.key
ltm profile client-ssl : testcert
cert: testcert.crt
key: testcert.key
profiles : ssltestvip profiles testcert
sys crypto cert : testcert.crt
sys crypto key : testcert.key
sys file ssl-cert : testcert.crt
sys file ssl-key : testcert.key
actually now that I look at the results, the ssltestvip the testcert is applied to shows up in the profiles list highlighted above. So...should be golden.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
