How to properly compute the fingerprint of a certificate
import "./styles.css" ; import sha256 from "crypto-js/sha256" ; var Buffer = require ( "buffer/" ). Buffer ; import OpenCrypto from "opencrypto" ; const crypt = new OpenCrypto (); //const fprint = require("fprint"); var textEncoding = require ( "text-encoding" ); var TextDecoder = textEncoding . TextDecoder ; var CryptoJS = require ( "crypto-js" ); console . log ( CryptoJS . HmacSHA1 ( "Message" , "sha256" )); export default function App () { console . log ( sha256 ( "message" )); let certString = "-----BEGIN CERTIFICATE----- \n " + "MIIDczCCAlugAwIBAgIHALRRMXUkMTANBgkqhkiG9w0BAQ0FADBHMRswGQYDVQQDDBJIdHRwQ2FuYXJ5IFJvb3QgQ0ExEzARBgNVBAoMCkh0dHBDYW5hcnkxEzARBgNVBAsMCkh0dHBDYW5hcnkwHhcNMjAwMTE1MDc1MjUwWhcNMzEwMTEyMDc1MjUwWjBHMRswGQYDVQQDDBJIdHRwQ2FuYXJ5IFJvb3QgQ0ExEzARBgNVBAoMCkh0dHBDYW5hcnkxEzARBgNVBAsMCkh0dHBDYW5hcnkwggEiMA0GCSqGSI...