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
+8.1k Useful methods to access blocked websites
+17.8k Golang : Check if a directory exist or not
+9.1k Golang : Launch Mac OS X Preview (or other OS) application from your program example
+16k Golang : How to extract links from web page ?
+17.2k Golang : Linked list example
+4.9k Python : Create Whois client or function example
+16.7k Golang : Get input from keyboard
+19.3k Golang : Example for DSA(Digital Signature Algorithm) package functions
+8k Golang : Qt splash screen with delay example
+12.8k Golang : How to calculate the distance between two coordinates using Haversine formula
+9.9k Golang : How to tokenize source code with text/scanner package?
+35.8k Golang : How to split or chunking a file to smaller pieces?