TLSv1.3 not working. error sending request
Opened this issue · 2 comments
baek-sang commented
What happened?
- valid cert ( let's encrypt )
- only TLSv1.3
- Error when enabling only TLSv1.3 on NGINX. Enable TLSv1.2 and it works.
- In bruno, it works without any problems.
Version
2024.8.2
What operating system are you on?
Windows
Relevant log output
[2024-09-12][18:21:09][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-09-12][18:21:09][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-09-12][18:21:16][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-09-12][18:21:16][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-09-12][18:21:16][WARN][tauri_app_lib] Failed to send request: error sending request for url (https://my.domain.com)
timcole commented
I believe this is caused by using native-tls in reqwest as native-tls doesn't support TLS 1.3 sfackler/rust-native-tls#140
Switching to rustls-tls-native-roots
and adding .use_rustls_tls()
to the client builder does work but not sure if @gschier would want to switch away from native-tls or if switching will cause other issues.
Here's a TLS1.3 only API you can test with https://booster.spaceflight.live/?query=query%7Blaunch%28id%3A%22ydrQbuXwPEo%22%29%7Bname%7D%7D
gschier commented
Would like to stay on native TLS if possible, as it gets you nice things like automatically picking up any user-installed certs.
I'm not totally opposed to bundling both, but that's quite a pain to maintain going forward.