Skip to content

Fix #76694: native Windows cert verification uses CN as sever name #7060

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented May 27, 2021

This is not guaranteed to work, since the actual server name may only
be given as SAN. Since we're doing the peer verification later anyway
(using the respective context options as appropriate), there is no need
to even supply a server name when verifying against the Windows cert
store.


Note that setting .pwszServerName to NULL is not explicitely documented, but is apparently supported.

This is not guaranteed to work, since the actual server name may only
be given as SAN.  Since we're doing the peer verification later anyway
(using the respective context options as appropriate), there is no need
to even supply a server name when verifying against the Windows cert
store.
@cmb69 cmb69 added the Bug label May 27, 2021
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks right to me, but @DaveRandom might want to take a look as well.

@cmb69 cmb69 closed this in 7fd4826 May 31, 2021
@cmb69
Copy link
Member Author

cmb69 commented May 31, 2021

I talked with @DaveRandom on Wednesday about this change, and he was good with it.

@cmb69 cmb69 deleted the cmb/76694 branch May 31, 2021 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants