extract LTM VS ssl profile binding cert and key information to generate a json with python f5-sdk
Code is community submitted, community supported, and recognized as ‘Use At Your Own Risk’.
Short Description
check LTM which VS enable ssl offload and extract its ssl profile binding cert, chain...
Updated Jan 18, 2023
Version 4.0xuwen
Cumulonimbus
Joined September 03, 2020
xuwen
Jan 16, 2023Cumulonimbus
test json result:
[
{
"name": "APP-017-SPECIAL_Dining2_8030_Internet_97.49_18031",
"fullPath": "/Common/APP-017-SPECIAL_Dining2_8030_Internet_97.49_18031",
"partition": "Common",
"serverside": [
{
"name": "serverssl",
"partition": "Common",
"fullPath": "/Common/serverssl",
"cert": null,
"key": null
}
]
},
{
"name": "service",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/service",
"partition": "Sample_cert_06",
"clientside": [
{
"name": "pTlsServer_Local",
"partition": "Sample_cert_06",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/pTlsServer_Local",
"cert": {
"name": "tlsserver_local_cert.crt",
"partition": "Sample_cert_06",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/tlsserver_local_cert.crt",
"expirationDate": 1519588224,
"expirationString": "Feb 25 19:50:24 2018 GMT",
"issuer": "CN=sample.example.net,O=f5_Networks,L=Seattle,ST=Washington,C=US",
"subject": "CN=sample.example.net,O=f5_Networks,L=Seattle,ST=Washington,C=US"
},
"key": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/tlsserver_local_cert.key",
"chain": {
"name": "tlsserver_local_cert-bundle.crt",
"partition": "Sample_cert_06",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/tlsserver_local_cert-bundle.crt",
"expirationDate": 1522351285,
"expirationString": "Mar 29 19:21:25 2018 GMT",
"issuer": "emailAddress=somebody@somewhere.org,CN=test_CA_bundle,OU=Test,O=F5,L=Seattle,ST=Washington,C=US",
"subject": "emailAddress=somebody@somewhere.org,CN=test_CA_bundle,OU=Test,O=F5,L=Seattle,ST=Washington,C=US"
}
}
],
"serverside": [
{
"name": "pTlsClient_Local",
"partition": "Sample_cert_06",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/pTlsClient_Local",
"cert": {
"name": "tlsclient_local_cert.crt",
"partition": "Sample_cert_06",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/tlsclient_local_cert.crt",
"expirationDate": 1519588224,
"expirationString": "Feb 25 19:50:24 2018 GMT",
"issuer": "CN=sample.example.net,O=f5_Networks,L=Seattle,ST=Washington,C=US",
"subject": "CN=sample.example.net,O=f5_Networks,L=Seattle,ST=Washington,C=US"
},
"key": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/tlsclient_local_cert.key",
"chain": {
"name": "tlsclient_local_cert-bundle.crt",
"partition": "Sample_cert_06",
"subPath": "TEST_Service_Https_MultiAddr_Local",
"fullPath": "/Sample_cert_06/TEST_Service_Https_MultiAddr_Local/tlsclient_local_cert-bundle.crt",
"expirationDate": 1522351285,
"expirationString": "Mar 29 19:21:25 2018 GMT",
"issuer": "emailAddress=somebody@somewhere.org,CN=test_CA_bundle,OU=Test,O=F5,L=Seattle,ST=Washington,C=US",
"subject": "emailAddress=somebody@somewhere.org,CN=test_CA_bundle,OU=Test,O=F5,L=Seattle,ST=Washington,C=US"
}
}
]
}
]