Commit 7b5fda1
committed
fix(libtls): enable SHA-384/512 and modern TLS extensions to fix cert verify
The default mbedtls_config.h profile force-undefs MBEDTLS_SHA384_C and
MBEDTLS_SHA512_C when ENABLE_CUSTOM_CONFIG=n. As a result mbedTLS cannot
recognize the sha384WithRSAEncryption OID (1.2.840.113549.1.1.12), so any
intermediate CA signed with RSA-SHA384 is silently dropped from the peer
chain with MBEDTLS_ERR_OID_NOT_FOUND. The verify_cb only sees the leaf,
the issuer cannot be located, and verification fails with NOT_TRUSTED
(flag 0x8) on otherwise valid chains - e.g. *.wgine.com leaf signed by
GoGetSSL RSA DV CA (RSA-SHA384) chained up to AAA Certificate Services.
Fix:
- enable MBEDTLS_SHA384_C / MBEDTLS_SHA512_C by default (root cause)
- enable MBEDTLS_SSL_RENEGOTIATION / _ALPN / _SESSION_TICKETS so the
ClientHello carries the standard modern extensions
- drop the ECDHE-RSA-AES128-CBC-SHA256 suite, add ChaCha20-Poly1305
AEAD suites and reorder ECDSA-first to match common server preference
Made-with: Cursor1 parent effe2f1 commit 7b5fda1
2 files changed
Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | | - | |
| 1787 | + | |
1788 | 1788 | | |
1789 | 1789 | | |
1790 | 1790 | | |
| |||
1910 | 1910 | | |
1911 | 1911 | | |
1912 | 1912 | | |
1913 | | - | |
| 1913 | + | |
1914 | 1914 | | |
1915 | 1915 | | |
1916 | 1916 | | |
| |||
3231 | 3231 | | |
3232 | 3232 | | |
3233 | 3233 | | |
3234 | | - | |
3235 | | - | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
3236 | 3242 | | |
3237 | 3243 | | |
3238 | 3244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
408 | 415 | | |
409 | 416 | | |
410 | 417 | | |
| |||
0 commit comments