-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
remoteCertificate passed to LocalCertificateSelectionCallback is always null on Windows #63321
Comments
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue DetailsI bump to it while working on test for #52499. While the trusted CA list is populated on Windows the It seems like there may be way how to get the certificate but it will need some exploration and more testing.
|
Triage: We need to call different function in Schannel to get the remoteCertificate before the handshake is done. |
So far, I was unable to find alternative API, however, I have some notes:
Can we ask the Schannel guys to point us to the appropriate API, @wfurt? because the only way I see to solve this is to manually parse the cert from the incoming data. |
we should use |
I bump to it while working on test for #52499. While the trusted CA list is populated on Windows the
remoteCertificate
is not.We try but the call we use always fails with
SEC_E_INVALID_HANDLE
. I confirmed with experts that the call cannot be used until handshake is done. We use same method and credentials to get the certificate after completed handshake and it works as expected. e.g. there is nothing wrong with the method or the credential handle.It seems like there may be way how to get the certificate but it will need some exploration and more testing.
The text was updated successfully, but these errors were encountered: