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
+6.4k Golang : Get all countries currencies code in JSON format
+6.7k Golang : Check a web page existence with HEAD request example
+60.5k Golang : How to convert character to ASCII and back
+11.5k Golang : convert(cast) string to float value
+5k Golang : Generate human readable password
+9.7k Golang : Calculate elapsed years or months since a date
+25.9k Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions
+5.5k Golang : Regular Expression find string example
+5.6k Gogland : Single File versus Go Application Run Configurations
+24.8k Golang : Interpolating or substituting variables in string examples
+7.1k Golang : Concatenate (combine) buffer data example
+8k Golang : Convert(cast) bigint to string