Forum Discussion
nitass
Employee
e.g.
// config
root@(bip1a)(cfg-sync In Sync)(Active)(/Common)(tmos) list sys file ssl-cert certone.crt
sys file ssl-cert certone.crt {
certificate-key-size 2048
checksum SHA1:1021:6b81a94a572bafe3b3bc25384a4cfe747b5504c0
create-time 2017-12-23:07:21:10
created-by admin
expiration-date 1545520870
expiration-string "Dec 22 23:21:10 2018 GMT"
issuer CN=certone.local,C=US
key-type rsa-public
last-update-time 2017-12-23:07:21:10
mode 33188
revision 1
serial-number 251652070
size 1021
source-path /config/ssl/ssl.crt/certone.crt
subject CN=certone.local,C=US
updated-by admin
version 3
}
root@(bip1a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm profile client-ssl client-ssl-one
ltm profile client-ssl client-ssl-one {
app-service none
cert certone.crt
cert-key-chain {
certone {
cert certone.crt
key certone.key
}
}
chain none
inherit-certkeychain false
key certone.key
passphrase none
}
root@(bip1a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual test-one
ltm virtual test-one {
destination 1.2.3.4:443
ip-protocol tcp
mask 255.255.255.255
profiles {
client-ssl-one {
context clientside
}
tcp { }
}
source 0.0.0.0/0
translate-address enabled
translate-port enabled
vs-index 4
}
// one-liner script
[root@bip1a:Active:In Sync] config for i in `tmsh list sys file ssl-cert one-line |awk '{print $4}'`; do echo "===== cert: $i ===="; for j in `tmsh list ltm profile client-ssl one-line |grep $i |awk '{print $4}'`; do echo "----- profile: $j -----"; for k in `tmsh list ltm virtual one-line |grep $j |awk '{print $3}'`; do echo "virtual: $k"; done; done; echo ""; done
===== cert: ca-bundle.crt ====
===== cert: certone.crt ====
----- profile: client-ssl-one -----
virtual: test-one
===== cert: default.crt ====
----- profile: clientssl -----
----- profile: clientssl-insecure-compatible -----
----- profile: clientssl-secure -----
----- profile: crypto-server-default-clientssl -----
----- profile: wom-default-clientssl -----
===== cert: f5-irule.crt ====
Duncan_Proffitt
Dec 27, 2017Altostratus
You amazing human being!! I want your babies!!
In other words;
Thank you very much, the one liner is perfect!!
D.