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.4k nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
+9.1k Golang : GMail API create and send draft with simple upload attachment example
+43.9k Golang : Get hardware information such as disk, memory and CPU usage
+13.8k Golang : Set image canvas or background to transparent
+15.4k Golang : Save(pipe) HTTP response into a file
+20.7k Golang : Pipe output from one os.Exec(shell command) to another command
+6.2k Golang : Function as an argument type example
+15.9k Golang : Get checkbox or extract multipart form data value example
+7.6k Golang : Scanf function weird error in Windows
+4.9k Golang : How to pass data between controllers with JSON Web Token
+9.7k Golang : Convert(cast) string to int64
+3.6k Golang : Fix go-cron set time not working issue