Unable to use bind_rustls_0_23 method from HttpServer #3539
-
As the title suggests, I have been unable to call HttpServer's method bind_rustls_0_23, as well as all other bind_rustls methods (like bind_rustls when changing to the older actix-web version correlating to that method).
I am probably just missing something, since all the documentation and source code would suggest that HttpServer's bind_rustls_0_23 method is public and should be accessible. Everything works fine when using only HTTP, I am only running into issues as I am trying to set up HTTPS capability. Any help would be immensely appreciated! I am fairly new to Actix so I am sorry for my confusion. Here is a snippet of my code: main.rs
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was able to solve this by modifying the Cargo.toml rustls entry. Instead of adding rustls on its own I did this like in the example: actix-web = { version = "4.0.0", features = ["rustls-0_23"] } |
Beta Was this translation helpful? Give feedback.
I was able to solve this by modifying the Cargo.toml rustls entry. Instead of adding rustls on its own I did this like in the example: actix-web = { version = "4.0.0", features = ["rustls-0_23"] }
Sorry for the trouble!