Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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