How to view all ssl certificates form the cli - multiple partitions

Guys, Simple Q - how to i view ssl certs for partitions other than COMMON on the cli ?

If I run list sys file ssl-cert I see only common partition ssl certs.

If I go into BASH and move to the file location of the “other partition” ssl certs and run tmsh list sys file ssl-cert I still only see COMMON located certs …

There must be a way of doing this … I am running 11.6.1. THANKS !

Would this work for you:

tmsh list sys file ssl-cert recursive

? (I can’t test it as all my certs are in the Common partition).

Try this one then:

tmsh -q -c "cd /; list sys file ssl-cert recursive"

.

Try this one then:

!/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