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

Fix server identity check #2253

Closed
wants to merge 1 commit into from

Conversation

KunZhou-at
Copy link
Contributor

@KunZhou-at KunZhou-at commented Oct 19, 2023

I don't think we are respecting the documented behavior for verifyIdentity. According to the documentation, in order to skip server identity check, we need to override checkServerIdentity by passing in a function as an argument to tls.connect. Currently we do that in the callback by which time the server identity check has already happened and error bubbled up.

@KunZhou-at KunZhou-at changed the title Fix server identity check [Testing, wip] Fix server identity check Oct 19, 2023
@KunZhou-at KunZhou-at changed the title [Testing, wip] Fix server identity check Fix server identity check Oct 19, 2023
@mikewang333
Copy link

Also looking for this behavior--is there any timeline for when this might get reviewed/merged? @wellwelwel

Thanks!

@wellwelwel
Copy link
Sponsor Collaborator

wellwelwel commented Jan 13, 2024

when this might get reviewed/merged?

Hi @mikewang333, I think there's an ongoing discussion about it in #2172.

But in any case, these changes looks good to me 🚀

In addition, #2295 seems to do the same in another way when reviewing its changes.

@sidorares
Copy link
Owner

closing this as a duplicate of #2376 Sorry @KunZhou-at your PR didn't get enough attention

@sidorares sidorares closed this Jan 17, 2024
@wellwelwel wellwelwel mentioned this pull request Apr 17, 2024
@wellwelwel
Copy link
Sponsor Collaborator

@KunZhou-at, I noticed you brought it back to #2594.

Could you explain the difference to PR #2376?

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.

4 participants