-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Ask SChannel for stapled OCSP when the client will do revocation #71570
Ask SChannel for stapled OCSP when the client will do revocation #71570
Conversation
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue DetailsI haven't been able to diagnose why Windows in the Server role doesn't seem to want to participate in OCSP Stapling (at least during tests), but with this change the clients will get the benefits of stapled OCSP when the server participates. The change essentially boils down to:
Everything else is plumbing to make that happen.
|
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
I'm OOF @bartonjs. I should be able to look at it early next week. |
src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs
Show resolved
Hide resolved
flags |= | ||
Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_CRED_REVOCATION_CHECK_END_CERT | | ||
Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_CRED_IGNORE_NO_REVOCATION_CHECK | | ||
Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_CRED_IGNORE_REVOCATION_OFFLINE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the mode is X509RevocationMode.Online should we ignore failures? While that may be convenient I'm wondering if that meets security expectations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're ignoring any failures out of SChannel anyways, and we rebuild the chain using the data they provide us.
src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I haven't been able to diagnose why Windows in the Server role doesn't seem to want to participate in OCSP Stapling (at least during tests), but with this change the clients will get the benefits of stapled OCSP when the server participates.
The change essentially boils down to:
Everything else is plumbing to make that happen.
Contributes to #33377.