I have generated a X509
certificate in DER
format, which is stored in a file with the name cert.crt
.
I would like to be able to hash it with sha256
algorithm.
How can this be done ?
I already have a function that allows me to hash any buffer of data, but I have the certificate in a file. Is there an easy way to do this ?
I am looking for a C implementation.