Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for low-level-native-tls #2853

Closed
1 task done
msdrigg opened this issue Jul 29, 2024 · 5 comments · Fixed by #2860
Closed
1 task done

Example for low-level-native-tls #2853

msdrigg opened this issue Jul 29, 2024 · 5 comments · Fixed by #2860

Comments

@msdrigg
Copy link

msdrigg commented Jul 29, 2024

  • I have looked for existing issues (including closed) about this

Feature Request

Motivation

There are currently good examples for low-level-rustls and low-level-openssl that are sufficient to get a beginner started on their project, but their is no such example for native-tls. The ecosystem around acceptors, listeners and streams is confusing enough that there is a lot of potential value to a simple example providing certificate configuration and then serving via axum.

Proposal

There should be a new example added providing the same functionality as low-level-rustls or low-level-openssl but with the native-tls backend.

@SarthakPaandey
Copy link

SarthakPaandey commented Aug 4, 2024

Can you describe more about the issue @msdrigg ?

@jplatte
Copy link
Member

jplatte commented Aug 4, 2024

@SarthakPaandey What exactly is unclear to you here?

@SarthakPaandey
Copy link

Could you provide more specifics on what functionalities or configurations are unclear when using native-tls compared to rustls or openssl and in which are you addressing the issue?

@msdrigg
Copy link
Author

msdrigg commented Aug 4, 2024

Well the issue for me personally is that I have never used tokio-native-tls. Having an example using it would be very beneficial for me to get a simple axum server setup with native tls.

Without such an example, it would require a lot of investigation into the native-tls docs to even get this simple use case setup.

@msdrigg
Copy link
Author

msdrigg commented Aug 4, 2024

Obviously, this would not be impossible for me or anyone else to achieve even without an example.

But still, I wanted to create this issue because I think this would be helpful addition to axum examples (just as low-level-rustls is helpful for people wanting to use rustls)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants