Forum Discussion
How to list all SAN entries by cert file and/or count them
Hi
One way you could do this from BASH is to run something like this from the Cert directory (/config/filestore/files_d/Common_d/certificate_d) to output the info
for f in *; do echo ${f}; openssl x509 -in ${f} -noout -text | awk '/DNS:/' | tr -d ' ' | sed 's/,/\n/g' | wc -l; done;
This will iterate through all of the files in the directory and will output the name of the file and the number of SAN entries like this
:Common:f5-ca-bundle.crt_28992_1
0
:Common:f5-ca-bundle.crt_29282_1
0
:Common:f5-irule.crt_28990_1
0
:Common:f5-irule.crt_29280_1
0
:Common:www.iainweb.local_62930_1
4
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com