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
+17.6k Golang : Multi threading or run two processes or more example
+11.3k Golang : Simple image viewer with Go-GTK
+34.1k Golang : Proper way to set function argument default value
+27.8k Golang : dial tcp: too many colons in address
+11.5k Golang : Delay or limit HTTP requests example
+5.6k Golang : Display advertisement images or strings on random order
+11.9k Golang : Secure file deletion with wipe example
+16.6k Golang : Send email and SMTP configuration example
+30.6k Get client IP Address in Go
+17.2k Golang : XML to JSON example
+20k Golang : Measure http.Get() execution time