Skip to content

Replace certificate-transparency-go chain verifier - #80

Merged
FiloSottile merged 3 commits into
mainfrom
push-orwtvnxwslln
Nov 30, 2026
Merged

FiloSottile merged 3 commits into
mainfrom
push-orwtvnxwslln

Conversation

@FiloSottile

Copy link
Copy Markdown
Owner

No description provided.

@FiloSottile
FiloSottile force-pushed the push-orwtvnxwslln branch 2 times, most recently from 7ed0455 to 4bff95d Compare November 26, 2026 14:29
phbnf added a commit to phbnf/unlax509 that referenced this pull request Nov 26, 2026
FiloSottile/sunlight#80 replaces the chain verification of Sunlight, which
is the one of certificate-transparency-go, with a package written for the
purpose: filippo.io/sunlight/chain.

This is that package at 7ed04559, the head of the pull request, unchanged
and without its tests, with the license of Sunlight. It is a copy because
Sunlight requires Go 1.27 at that commit, and this tool has to run with
go1.26.10. Nothing uses it yet.
phbnf added a commit to phbnf/unlax509 that referenced this pull request Nov 26, 2026
A fourth validator, sunlight: the chain verifier of FiloSottile/sunlight#80,
set up as Sunlight sets it up for a log of TLS certificates. It requires the
ServerAuth EKU and a NotAfter in the interval of the log, and blocks the
default keys of Sunlight.

It gets the recorded chain, with both root sets, and its reasons are the
ones the chain package gives, such as fail_unknown_root. If it rejects the
chain with tesseract_roots, it gets it without its last certificate, as
lax509 and unlax509 do: fail_unknown_root:ok_without_root. It builds no
path, so no other chain is looked for. With -shortcut, a chain that is
accepted with og_log_roots up to a root of tesseract_roots is not verified
again with them.

An entry gets a record if sunlight rejects it with og_log_roots, as for the
other validators, or if it rejects with tesseract_roots a chain that lax509
accepts with them as recorded.

-sunlight is on by default. The settings of a run only mention it when it
is on, so output directories written before can be resumed, with
-sunlight=false.
@FiloSottile
FiloSottile merged commit 1698a07 into main Nov 30, 2026
10 checks passed
@FiloSottile
FiloSottile deleted the push-orwtvnxwslln branch November 30, 2026 11:53
Comment thread chain/certificate.go
key crypto.PublicKey
}

// An extension is one of the extensions that are interpreted.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/are/is/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants