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
+10.9k Golang : Calculate elapsed years or months since a date
+16.8k Golang : Read input from console line
+4.3k Golang : Find change in a combination of coins example
+7.1k Golang : HTTP Routing with Goji example
+41.8k Golang : Disable security check for HTTPS(SSL) with bad or expired certificate
+4.5k Golang : How to get capacity of a slice or array?
+4.1k Golang : Join lines with certain suffix symbol example
+3.2k Which content-type(MIME type) to use for JSON data
+8.7k Golang : Simple File Server
+15.6k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+14.4k Golang : Get number of CPU cores
+22k Golang : Get current file path of a file or executable