mono / mono-addins

Mono.Addins is a generic framework for creating extensible applications, and for creating add-ins which extend those applications.
MIT License
164 stars 93 forks source link

Check revoked certificates by default #217

Closed mrward closed 11 months ago

mrward commented 11 months ago

Set ServicePointManager.CheckCertificateRevocationList to true in the WebRequestHelper to enable revoked certificates by default. This is a no-op on mono:

https://github.com/mono/mono/blob/c5b88ec4f323f2bdb7c7d0a595ece28dae66579c/mcs/class/System/System.Net/ServicePointManager.cs#L197

On macOS, mono will use native APIs so a revoked certificate will have SslPolicyErrors.

Validation: