Validates a server certificate.

See Also: ICertificatePolicy Members


public interface ICertificatePolicy


The System.Net.ICertificatePolicy interface is used to provide custom security certificate validation for an application. The default policy is to allow valid certificates, as well as valid certificates that have expired. To change this policy, implement the System.Net.ICertificatePolicy interface with a different policy, and then assign that policy to ServicePointManager.CertificatePolicy.

System.Net.ICertificatePolicy uses the Security Support Provider Interface (SSPI). For more information, see the SSPI documentation on MSDN.


Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,