mockttp
    Preparing search index...

    Function getCertificateTransparencyLogs

    • Derive the Certificate Transparency logs for a given CA certificate.

      When a CA is used with certificateTransparency enabled, Mockttp embeds SCTs signed by two logs deterministically derived from that CA certificate. This returns those logs' ids & public keys (SPKI, DER) - exactly matching the SCTs embedded in generated certificates.

      Only the CA certificate is required: derivation is a pure function of the cert's public key, independent of how the CA private key happens to be encoded.

      Parameters

      • caCert: string

      Returns { logId: Buffer; publicKey: Buffer; usableSince: Date }[]