Skip to content

remoteCertificate passed to LocalCertificateSelectionCallback is always null on Windows #63321

Closed
@wfurt

Description

@wfurt

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions