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
+4.7k HTTP common errors and their meaning explained
+12.1k Golang : Simple client-server HMAC authentication without SSL example
+14.3k Golang : Parsing or breaking down URL
+13k Golang : List objects in AWS S3 bucket
+4.8k Nginx and PageSpeed build from source CentOS example
+25.1k Golang : Generate MD5 checksum of a file
+9.3k Golang : Terminate-stay-resident or daemonize your program?
+11.5k Golang : Find age or leap age from date of birth example
+8.1k Swift : Convert (cast) Character to Integer?
+4.9k Linux : How to set root password in Linux Mint
+31.9k Golang : Validate email address with regular expression
+4.7k Fix Google Analytics Redundant Hostnames problem