-
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
Question: difference between X509RevocationMode.Offline and X509RevocationMode.Online #64689
Comments
Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones Issue DetailsIssue NuGet/Home#11548 says setting May I know if there is any other difference(e.g. OCSP )between the two modes? Just wonder why there is a big difference in restore time. From the doc, there is a note
|
The behavioral differences come from the Windows OS, they're a black box to .NET. When the mode is Offline we set the In Online mode the OS might prefer to check live OCSP over using a longer-lifed cached CRL, but that's speculation. |
Thanks @bartonjs ! |
Windows has telemetry for chain building, which is opt-in. The instructions for turning it on are at https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc749296(v=ws.10)?redirectedfrom=MSDN |
Issue NuGet/Home#11548 says setting
NUGET_CERT_REVOCATION_MODE
to offline makes the restore much faster on windows (from 5m 39s to 1m 22s)The only difference from NuGet side is the value of
X509RevocationMode
(online to offline), which is set before chain building.From the doc, we can see the difference between offline and online is:
Offline: A revocation check is made using a cached certificate revocation list (CRL).
Online: A revocation check is made using an online certificate revocation list (CRL).
May I know if there is any other difference(e.g. OCSP )between the two modes? Just wonder why there is a big difference in restore time.
From the doc, there is a note
Specifying an online check can result in a long delay while the certificate authority is contacted.
May I know if you've done any test comparing the two mode? Thanks!
The text was updated successfully, but these errors were encountered: