Skip to content

Add rustls listener certificate resolver support#877

Open
eldryoth wants to merge 1 commit into
cloudflare:mainfrom
eldryoth:rustls-listener-cert-resolver
Open

Add rustls listener certificate resolver support#877
eldryoth wants to merge 1 commit into
cloudflare:mainfrom
eldryoth:rustls-listener-cert-resolver

Conversation

@eldryoth
Copy link
Copy Markdown

@eldryoth eldryoth commented May 7, 2026

Summary

This adds a rustls listener API for passing a custom server certificate resolver.

The existing single-certificate TlsSettings::intermediate(cert, key) path is unchanged. The new TlsSettings::with_cert_resolver(...) constructor lets applications select downstream certificates during the
TLS handshake, for example based on SNI.

The resolver types are re-exported from pingora-rustls, so pingora-core does not need a direct rustls dependency.

Testing

Tested with:

  • cargo fmt --check
  • cargo check -p pingora-rustls
  • cargo check -p pingora-core --features rustls
  • cargo check -p pingora --features rustls
  • cargo test -p pingora-core --features rustls cert_resolver_settings_build_without_cert_paths

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.

1 participant