Skip to content

Conversation

@lukevalenta
Copy link
Contributor

This option allows the Merkle Tree CA to validate cross-signed bootstrap chains, where the final cert in the chain is not necessarily trusted. This option is disabled for CT where every cert in the submitted chain needs to be part of the validated path.

Also enforce path length constraints in validate_chain_lax. RFC 6962 doesn't mention invalid path length constraints as a reason to reject a certificate chain, but it is required in RFC 9162. Seems fine to reject these chains in CT. For MTC we do want to enforce this check.

This option allows the Merkle Tree CA to validate cross-signed bootstrap
chains, where the final cert in the chain is not necessarily trusted.
This option is disabled for CT where every cert in the submitted chain
needs to be part of the validated path.

Also enforce path length constraints in validate_chain_lax. RFC 6962
doesn't mention invalid path length constraints as a reason to reject a
certificate chain, but it is required in RFC 9162. Seems fine to reject
these chains in CT. For MTC we do want to enforce this check.
@lukevalenta lukevalenta self-assigned this Oct 2, 2025
@lukevalenta lukevalenta added mtc Merkle Tree Certificates ct Certificate Transparency labels Oct 2, 2025
Copy link
Contributor

@cjpatton cjpatton left a comment

Choose a reason for hiding this comment

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

Consider adding a cert chain with a cross chain to the mtc_api tests. Maybe Cloudflare's?

openssl s_client -showcerts -connect cloudflare.com:443 -servername cloudflare.com </dev/null 2>/dev/null

@lukevalenta
Copy link
Contributor Author

Consider adding a cert chain with a cross chain to the mtc_api tests. Maybe Cloudflare's?

openssl s_client -showcerts -connect cloudflare.com:443 -servername cloudflare.com </dev/null 2>/dev/null

Done!

@lukevalenta lukevalenta merged commit 63ec7b5 into main Oct 4, 2025
1 check passed
@lukevalenta lukevalenta deleted the lvalenta/relax-chain-validation branch October 4, 2025 15:24
@lukevalenta
Copy link
Contributor Author

Closed #125

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

Labels

ct Certificate Transparency mtc Merkle Tree Certificates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants