Closed
Description
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.