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
+16.5k How to enable MariaDB/MySQL logs ?
+16.2k Golang : delete and modify XML file content
+4.3k Gogland : Datasource explorer
+8k Golang : Populate or initialize struct with values example
+31k Golang : Convert []string to []byte examples
+11.1k Golang : List running EC2 instances and descriptions
+11.1k Golang : Get month name from date example
+5.2k Javascript : Get operating system and browser information
+39.3k Golang : How to count duplicate items in slice/array?
+9.6k Golang : Interfacing with PayPal's IPN(Instant Payment Notification) example
+8.5k Golang : How to protect your source code from client, hosting company or hacker?