For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Basil_Parsley_1's avatar
Basil_Parsley_1
Icon for Nimbostratus rankNimbostratus
Jan 22, 2017

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 !

 

3 Replies

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    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).

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Try this one then:

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

    .

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    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