Mchelle_181998
Oct 20, 2017Cirrus
Solved
report for all SSL
Looking how to create a more formatted report of all SSL certificates
I run command tmsh list sys file ssl-cert all > /ssl.txt which then I import into excel. However the ssl.txt each ssl certificate components (expiry date, serial , etc) is listed in rows there is no delimiter. I would like each row of information listed in columns
How would I put this to an output text file
PARTITIONS=( $(tmsh list auth partition one-line | sed -e 's/ //g' | grep -oP '(?<=partition)[^{]+' -) )
for partition in ${PARTITIONS[*]}; do tmsh -q -c "cd /$partition; list sys file ssl-cert" done