Skip to content
PKIjsPKIjsPKIjsv4.0.1

verifySCTsForCertificate

verifySCTsForCertificate(certificate, issuerCertificate, logs, index?, crypto?): Promise<boolean[]>

Verify SignedCertificateTimestamp for specific certificate content Uses stored tbsView bytes, including their SCTs, when present. Otherwise, uses one encodeTBS() result for both the SCTs and signed data.

Certificate

Certificate for which verification would be performed

Certificate

Certificate of the issuer of target certificate

Log[]

Array of objects with information about each CT Log (like here: https://ct.grahamedgecombe.com/logs.json)

number = -1

Index of SignedCertificateTimestamp inside SignedCertificateTimestampList (for -1 would verify all)

ICryptoEngine = ...

Crypto engine

Promise<boolean[]>

Array of verification results