Skip to content

TLS: "Bad Protocol Version" error with reqwest client, curl works great, axum tls rust-tls server, mkcert self-signed certs #2428

Answered by seanmonstar
ptdecker asked this question in Q&A
Discussion options

You must be logged in to vote

The error code being negative hints to me it's from the OS. You have the default features of reqwest still on, and it will use the default tls if you don't tell the builder otherwise. Try .use_rustls_tls().

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ptdecker
Comment options

@ptdecker
Comment options

Answer selected by ptdecker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants