Uh oh!
There was an error while loading. Please reload this page.
Implement part of SslCertificateTrust - #55104
Conversation
ghost
commented
Jul 2, 2021
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue Detailsrelated to #54219 This also adds support for sending Distinguished Names on Windows.
|
ghost
commented
Jul 2, 2021
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
wfurt
commented
Jul 5, 2021
feedback addressed, CI is clean. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| if (errorCode != Interop.SECURITY_STATUS.OK) | ||
| { | ||
| throw new Win32Exception((int)errorCode); |
There was a problem hiding this comment.
Shouldn't we be throwing something other than Win32Exception here?
There was a problem hiding this comment.
I'm not sure. I look at the code around Acquire Credentials and it seems like that what we throw. I can check as we may perhaps wrap it.
geoffkizer
commented
Jul 8, 2021
Tests? |
wfurt
commented
Jul 8, 2021
As I mentioned tests are problematic on Windows as the handshake depends on registry setting and very recent Windows changes. I'll try to figure out something but for now I would like to defer it. More changes are still coming for #54219. |
ManickaP
left a comment
There was a problem hiding this comment.
LGTM, small comments. Please do get another approval, I'm not an expert here, barely noob.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
wfurt
commented
Jul 12, 2021
mono build failures are independent. |
related to #54219
This adds approved API and uses provided certificate for managing trust.
I assume we don't need anything beyond chain.ChainPolicy.TrustMode, right @bartonjs?
This also adds support for sending Distinguished Names on Windows.
The caveat is that it depends on registry setting as well as very new Windows builds.
So testing is problematic and I did some manual preliminary test.