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
+14.8k Golang : convert string or integer to big.Int type
+6.3k Golang : Example of how to detect which type of script a word belongs to
+6.8k Golang : Load DSA public key from file example
+14.1k Golang : Intercept Ctrl-C interrupt or kill signal and determine the signal type
+4.9k Golang : Extract unicode string from another unicode string example
+24.9k Golang : Calculate future date with time.Add() function
+7.5k Golang : Progress bar with ∎ character
+11.6k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+7k Golang : HttpRouter multiplexer routing example
+6k Golang : Get environment variable
+7.3k Golang : Count leading or ending zeros(any item of interest) example
+25.1k Golang : Force your program to run with root permissions