Expect-CT header


目录

The Expect-CT response header lets sites opt in to reporting and/or enforcement of Certificate Transparency requirements. Certificate Transparency (CT) aims to prevent the use of misissued certificates for that site from going unnoticed.

Only Google Chrome and other Chromium-based browsers implemented Expect-CT, and Chromium has deprecated the header from version 107, because Chromium now enforces CT by default. See the Chrome Platform Status update.

CT requirements can be satisfied via any one of the following mechanisms:

NOTE: When a site enables the Expect-CT header, they are requesting that the browser check that any certificate for that site appears in public CT logs.

NOTE: Browsers ignore the Expect-CT header over HTTP; the header only has effect on HTTPS connections.

NOTE: The Expect-CT is mostly obsolete since June 2021. Since May 2018, all new TLS certificates are expected to support SCTs by default. Certificates issued before March 2018 were allowed to have a lifetime of 39 months, so they had expired in June 2021. Chromium plans to deprecate Expect-CT header and to eventually remove it.

Header type [Response header](https://developer.mozilla.org/en-US/docs/Glossary/Response%20header)

Syntax

Expect-CT: report-uri="<uri>",
           enforce,
           max-age=<age>

Directives

Example

The following example specifies enforcement of Certificate Transparency for 24 hours and reports violations to foo.example.com.

Expect-CT: max-age=86400, enforce, report-uri="https://foo.example.com/report"

Notes

Root CAs manually added to the trust store override and suppress Expect-CT reports/enforcement.

Browsers will not remember an Expect-CT policy, unless the site has 'proven' it can serve a certificate satisfying the certificate transparency requirements. Browsers implement their own trust model regarding which CT logs are considered trusted for the certificate to have been logged to.

Builds of Chrome are designed to stop enforcing the Expect-CT policy 10 weeks after the installation's build date.

Specifications

Browser compatibility

See also


版本号 #3
由 壳壳虫 创建于 2026-10-31 03:27:53 UTC
由 cocobook-sync 更新于 2026-11-04 17:35:46 UTC