Forum Discussion
Thiyagu_163984
Nimbostratus
Aug 29, 2015command to find the SHA algorithm used in SSL certificate
Hello All,
I'm working to find whether SHA1 or SHA2 algorithm being used int the SSL certificate of an application installed int the load balancer.
Is there any command to find the type of algor...
Kevin_Stewart
Employee
Aug 29, 2015Here's a quick script I put together:
!/bin/bash
for c in `ls --format single-column /config/filestore/files_d/Common_d/certificate_d/`;
do
arr=($(openssl x509 -noout -text -in /config/filestore/files_d/Common_d/certificate_d/${c} |grep -E "sha1"))
if [ -n "${arr[2]}" ]
then
echo ${c}
fi
done
This will list all of the certificates in the Common partition that use SHA1
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects