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
+8.5k Golang : On lambda, anonymous, inline functions and function literals
+5.5k Golang : ROT32768 (rotate by 0x80) UTF-8 strings example
+9.9k Golang : Get login name from environment and prompt for password
+14.4k Golang : Execute function at intervals or after some delay
+17.8k Golang : Put UTF8 text on OpenCV video capture image frame
+18.8k Golang : Clearing slice
+25.5k Golang : missing Mercurial command
+9.4k Golang : Copy map(hash table) example
+10.1k Golang : Wait and sync.WaitGroup example
+12.4k Golang : Transform comma separated string to slice example
+29.5k Golang : Get and Set User-Agent examples