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

Allow disabling TLS certificate verification #1472

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Sep 7, 2023

This is obviously not a good security practice but for the sake of testing or similar it is very useful to be able to disable the verification of TLS certificates.

Most of the changes went into the tlsuv library where I had to add new options for this. I'm not all too pleased with that solution but it works.

I have verified that this works by connecting to google.com but through an IP address so we get a mismatch between the address and certificate name. It normally fails but once we disable verification the connection is established.

Fixes #1471

@plajjan plajjan force-pushed the 1471-tls-disable-verification branch 2 times, most recently from c2aa956 to 4f8676c Compare September 7, 2023 11:47
This is obviously not a good security practice but for the sake of
testing or similar it is very useful to be able to disable the
verification of TLS certificates.

Most of the changes went into the tlsuv library where I had to add new
options for this. I'm not all too pleased with that solution but it
works.

I have verified that this works by connecting to google.com but through
an IP address so we get a mismatch between the address and certificate
name. It normally fails but once we disable verification the connection
is established.
These fields should always be initialized and I have now fixed that in
tlsuv_stream_init inside of tlsuv instead.
@plajjan plajjan force-pushed the 1471-tls-disable-verification branch from 4f8676c to f570b94 Compare September 7, 2023 11:51
@plajjan plajjan merged commit 6813cab into main Sep 7, 2023
24 checks passed
@plajjan plajjan deleted the 1471-tls-disable-verification branch September 7, 2023 12:17
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.

Improve TLSConnection: support disabling TLS verification
1 participant