Namespace: System.Net.Security
Assembly: System.Net.Primitives.dll
Specifies the level of certificate validation that the System.Net.Security.SslStream class performs.
public enum CertificateVerificationMode
Certificate validation is handled by the application.
Certificate validation is handled by the application, but the peer's certificate is validated against the chain of trust.
Certificate validation is handled by the application, but the certificate is validated against the certificate chain.
When you use the SslStream class, you can specify the CertificateVerificationMode to indicate how certificate validation is performed.
Manual to perform all certificate validation yourself.PeerOrChain to allow the SslStream to perform peer validation and validation against the certificate chain.ChainTrust to only validate against the certificate chain.This enumeration is used by the System.Net.Security.SslClientAuthenticationOptions.CertificateVerificationMode and System.Net.Security.SslServerAuthenticationOptions.CertificateVerificationMode properties.
Supported in: .NET Framework 4.5
Supported in: .NET Framework 4.0
Supported in: .NET Framework 3.5
Supported in: .NET Framework 2.0
System.Net.Security Namespace
SslClientAuthenticationOptions
SslServerAuthenticationOptions