Forum Discussion

Mchelle_181998's avatar
Oct 20, 2017
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 certi...
  • Mchelle_181998's avatar
    Oct 20, 2017

    How would I put this to an output text file

     

    !/bin/bash

    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