Skip to content

fix(tls): install rustls crypto provider before serving#156

Open
SVilgelm wants to merge 1 commit into
rust-mcp-stack:mainfrom
SVilgelm:fix/rustls-crypto-provider
Open

fix(tls): install rustls crypto provider before serving#156
SVilgelm wants to merge 1 commit into
rust-mcp-stack:mainfrom
SVilgelm:fix/rustls-crypto-provider

Conversation

@SVilgelm
Copy link
Copy Markdown
Contributor

📌 Summary

No rustls CryptoProvider was installed explicitly. With both aws-lc-rs (pulled by jsonwebtoken) and ring potentially in the dependency graph, rustls has no unambiguous default and the first TLS handshake can panic. The ssl path now installs the aws-lc-rs provider before serving.

🔍 Related Issues

✨ Changes Made

  • Add rustls as an optional dependency under the ssl feature.
  • Install aws_lc_rs CryptoProvider at the start of start_ssl (ignoring the already-installed case so embedders can install their own).

Explicitly install the aws-lc-rs rustls CryptoProvider in start_ssl so the first TLS handshake cannot panic when both aws-lc-rs and ring are present in the dependency graph.

Assisted-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Sergey Vilgelm <sergey@vilgelm.com>
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