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
+10.6k Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine
+5.1k Golang : Calculate a pip value and distance to target profit example
+21.9k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload
+15.1k Golang : Search folders for file recursively with wildcard support
+12.6k Golang : Forwarding a local port to a remote server example
+21.2k Golang : Sort and reverse sort a slice of strings
+5.5k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+8k Golang Hello World Example
+5.7k Unix/Linux : How to find out the hard disk size?
+22.3k Golang : How to run Golang application such as web server in the background or as daemon?
+7.2k Restart Apache or Nginx web server without password prompt
+14.1k Golang : convert rune to unicode hexadecimal value and back to rune character