title: Open SSL certificate fingerprint in C
body: <p>I am generating a self signed certificate using OpenSSL from C. My code is largely based on the example demo code in the demos/X509 folder (in OpenSSL) and is working ok.</p>
  
  <p>I need to generate a fingerprint of my certificate (and X509 structure) from my C code for later validation, but the OpenSSL documentation is somewhat lacking and I have not managed to work out how to do this. I have searched around for information and all I ever find is how to do it using OpenSSL from the command line.</p>
  
  <p>Thanks for any advice! </p>