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
+9.3k Golang : Allow Cross-Origin Resource Sharing request
+7.2k Golang : Number guessing game with user input verification example
+22.2k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+5.8k Golang : Fixing Gorilla mux http.FileServer() 404 problem
+4.5k Golang : Frobnicate or tweaking a string example
+4.7k Fix yum-complete-transaction error
+4.6k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+8.3k Golang : Find correlation coefficient example
+4.6k How to check with curl if my website or the asset is gzipped ?
+4.3k Golang : The Tao of importing package
+7.1k Golang : Auto-generate reply email with text/template package
+22.4k Golang : Use regular expression to validate domain name