x509_digest()

 
Return the digest of the given certificate referred to by the certificate reference, using the specified hash algorithm.
Syntax
x509_digest( x509 var, digestname, digest var )
Returns 1 on success, 0 on failure
  • x509 = Certificate reference returned from functions such as x509_load_mem
  • digestname = Hash algorithm name, such as "md5" or "sha256". Supported digest algorithms will vary between OpenSSL installations
  • digest = Hash value of the certificate
User Annotations: x509_digest