I am using node-forge, and need to parse a CSR-PEM which can be done with the following method:
Forge.pki.certificationRequestFromPem(csr)
But now i need to get the SHA-256 Hash of the CSR and a MD5 Hash. I have gone through all the examples and documentation but cant find anything. Can anyone assist with this if they know forge well? Or maybe another nodejs package that can do it?
I just noticed that i actually need the hash from the DER-encoded CSR, so first i need to convert the PEM to DER :-(