Function verifyCertSignature

  • verify signature of X.509 certificate

    Parameters

    • hCert: string

      hexadecimal string of X.509 DER certificate

    • keyobjOrString: string | CryptoKey

      public key CryptoKey object or PEM public key

    Returns Promise<boolean>

    true if signature is valid

    Example

    verifyCertSignature("3082...", "-----BEGIN PUBLIC...") -> true