-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
http/client: Don't verify IP #74
Conversation
OpenSSL's API does not allow for removing an IP verification once set (see openssl/openssl#2673)
As an alternative: perhaps don't add the IP check if |
|
Also, assign me as a reviewer. :P |
Set where?
Github isn't letting me. I assume because you haven't contributed to the project, and they want to prevent spam? |
This seems quite sane. Would it be possible instead to take an optional parameter to specify what the cert should be valid for, which could be either an hostname, an IP or |
It's not disabling cert validation, just hostname validation (but... yeah, still bad).
Yeah I use certs with an IP from an internal CA for my gear in our community WISP: I don't love disabling it. (or I should say: making it opt-in instead of opt-out)
Well that's what the openssl tls_verify_param object is meant to be in the first place. However super annoyingly, it's missing the operation to disable an IP after one is added. In general the current openssl API makes it possible to opt-in. but after you opt-in, you can't opt-out again. Which makes my pattern of "sensible defaults => merge in user configuration" unable to opt-out of IP verification. |
Maybe instead I should add an |
I think a better resolution is to push the custom (out of band) dns lookup into a callback or similar. Possibly related to wahern/cqueues#78 |
Closing as #120 seems like the better path forward. |
OpenSSL's API does not allow for removing an IP verification once set (see openssl/openssl#2673)
This means in turn that (without this PR) you can't use an IP as the connect address if you don't want to verify that it presents a certificate for it (e.g. if you did the dns lookup out of band).