lwIP: require TLS certificate verification when CA is configured#11523
lwIP: require TLS certificate verification when CA is configured#11523Old-Ding wants to merge 1 commit into
Conversation
|
|
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-06-27 03:38 CST)
📝 Review Instructions
|
why to submit this PR
ALTCP TLS client configurations should require server certificate verification when a CA certificate is configured. This keeps certificate validation in the TLS configuration layer and makes the configured trust anchor effective.
what is your solution
Use
MBEDTLS_SSL_VERIFY_REQUIREDfor client TLS configurations that provide a CA certificate. Keep the existing optional verification mode for server configurations and client configurations without a CA certificate to preserve current compatibility.provide the config and bsp
bsp/bouffalo_lab/bl808/m0CONFIG_RT_USING_LWIP212=y,CONFIG_PKG_USING_MBEDTLS=yvalidation
git diff --checkaltcp_tls_create_config_client()andaltcp_tls_create_config_client_2wayauth()use the shared client configuration pathscons -j4inbsp/bouffalo_lab/bl808/m0did not reach compilation because the configured toolchain path/opt/Xuantie-900-gcc-elf-newlib-x86_64-V2.6.1/binis not available on this Windows host