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

TLS Version Pinning #264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Clete2
Copy link

@Clete2 Clete2 commented Nov 2, 2021

With this PR, hey will support TLS version pinning. I chose to support all the TLS versions that the Golang TLS package supports.

The utility now accepts 2 new parameters: -min-tls-version and -max-tls-version. You can specify one, both, or none of them. A check is made to ensure that you don't specify the min above the max (min 1.2 max 1.0 will throw error).

This feature is useful to ensure that you are using the proper TLS version in requests. I also used this to test out performance of TLS 1.2 vs TLS 1.3.

For testing, I implemented table-driven tests to create a number of test cases in a succinct manner.

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.

1 participant