title: How do I check if my SSL Certificate is SHA1 or SHA2 on the commandline
body: <p>How do I check if my SSL Certificate is using SHA1 or SHA2, from the commandline?</p>
  
  <p>And yes, i this is similar to <a href="https://stackoverflow.com/questions/25810999/how-do-i-check-if-my-ssl-certificate-is-sha1-or-sha2">this</a>, but i need a cli-tool and i want to understand how it is done.</p>