mbedtls icon indicating copy to clipboard operation
mbedtls copied to clipboard

ssl_client2: Add Host to HTTP GET request

Open jetm opened this issue 9 months ago • 0 comments

Description

If an IP address shares multiple domain names with different SSL certificates and makes a GET request without the remote server name (host), it will fail with a 421 Misdirect Request.

Please read https://github.com/Mbed-TLS/mbedtls/issues/9093 for more details on how to reproduce the problem that this PR is addressing and further details.

PR checklist

Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")

  • [ ] ~~changelog provided~~. Not required. Please let me know if it's required to update the changelog.
  • [X] 3.6 backport.
  • [ ] ~~2.28 backport~~. N/A
  • [ ] tests provided. Waiting on CI results

Notes for the submitter

Help make review efficient:

  • [X] Multiple simple commits
    • [X] please structure your PR into a series of small commits, each of which does one thing
  • [X] Avoid force-push
    • [X] please do not force-push to update your PR - just add new commit(s)
  • [X] See our Guidelines for Contributors for more details about the review process.

jetm avatar May 08 '24 21:05 jetm