Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SslConfig#maxCertificateListBytes() #2570

Merged
merged 2 commits into from
Jul 1, 2023

Conversation

Scottmitch
Copy link
Member

Motivation:
Some use cases have certificate chains larger than the BoringSSL default limit. This may result in handshake failures and there is no way to configure the maximum value.

Modifications:

  • Add SslConfig#maxCertificateListBytes() and corresponding builder methods to allow configuring the limit (if supported by SSLEngine).

@Scottmitch
Copy link
Member Author

PR build expected to fail currently. lower limit isn't failing handshake as expected, more investigation required.

@Scottmitch Scottmitch force-pushed the max_cert_size branch 2 times, most recently from 50da265 to 3f93316 Compare April 28, 2023 16:26
@Scottmitch Scottmitch force-pushed the max_cert_size branch 2 times, most recently from 5b12c38 to 172f967 Compare June 30, 2023 20:31
@Scottmitch Scottmitch marked this pull request as ready for review June 30, 2023 20:32
Motivation:
Some use cases have certificate chains larger than the BoringSSL default
limit. This may result in handshake failures and there is no way to
configure the maximum value.

Modifications:
- Add SslConfig#maxCertificateListBytes() and corresponding builder
methods to allow configuring the limit (if supported by SSLEngine).
}
}

private static SslContext configureBuilder(SslConfig config, SslContextBuilder builder, boolean forServer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice cleanup. 👍

@Scottmitch Scottmitch merged commit 195e409 into apple:main Jul 1, 2023
15 checks passed
@Scottmitch Scottmitch deleted the max_cert_size branch July 1, 2023 07:00
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

Late LGTM, thanks!

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.

None yet

3 participants