How do I check if my SSL Certificate is using SHA1 or SHA2, from the commandline?
And yes, i this is similar to this, but i need a cli-tool and i want to understand how
You didn't specify a platform, but in a Windows command prompt you can use:
certutil -dump cacert.pem | find "Algorithm"