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

Provide example of more in-depth TLS config #484

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

algesten
Copy link
Owner

Close #480

@algesten algesten requested a review from jsha February 10, 2022 16:23
@algesten
Copy link
Owner Author

@insanitybit see here for the example I propose to add.

}));

// This is how we narrow down the allowed TLS versions for rustls.
let protocol_versions = &[&TLS12];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a more representative (and safer) example is likely to narrow down to all versions >= TLS12, as opposed to tying to 1.2 specifically.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true. let's do that!

@insanitybit
Copy link

This is awesome. Just one comment.

@algesten
Copy link
Owner Author

@insanitybit turns out native-tls doesn't support TLS1.3 sfackler/rust-native-tls#140

But I did put it into the rustls example.

@insanitybit
Copy link

Makes sense! Thanks.

@algesten algesten merged commit 21238ef into main Apr 12, 2022
@algesten algesten deleted the feature/example-tls-config branch August 13, 2024 17:01
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 this pull request may close these issues.

Specify minimum TLS version
2 participants