title: how to get the type of signature hash algorithm from certificate?
body: <p>I'm using the OpenSSL API to get the type of signature hash algorithm from certificate.
  For example, if the certificate uses the sha1, the api return sha1.
  if the certificate uses sha256, the api return sha256.</p>
  
  <p>but I don't know the api, please help me! thanks!</p>