SSL : How to check if current certificate is sha1 or sha2 from command line
Problem :
You want to check if a website SSL certificate is sha1 or sha2 algorithm from command line.
Solution :
Assuming your are running a *nix based OS like OSX or Linux with OpenSSL installed.
This is the openssl command to check your website certificate from the command line :
> openssl s_client -connect www.yoursite.com:443 < /dev/null 2>/dev/null | openssl x509 -text -in /dev/stdin | grep "Signature Algorithm"
the result should look like
Signature Algorithm: sha1WithRSAEncryption for sha1
and
Signature Algorithm: sha256WithRSAEncryption for sha2
See also : SSL : How to check if current certificate is sha1 or sha2
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+14.5k Golang : Loop each day of the current month example
+16.2k Golang : Linked list example
+12.2k Golang : Read XML elements data with xml.CharData example
+10.8k Golang : Convert a rune to unicode style string \u
+13.2k Golang : On enumeration
+4.4k Unix/Linux/MacOSx : How to remove an environment variable ?
+7.8k Golang : Heap sort example
+5.6k Unix/Linux : How to get own IP address ?
+22.6k Golang : Generate MD5 checksum of a file
+13.5k Golang : Execute function at intervals or after some delay
+7.3k Swift : Convert (cast) Character to Integer?