System.Net.Security

SslValidationResult

Summary

Contains the results of an SSL validation operation.

Syntax

public enum SslValidationResult

Members

Fields

  • Success: The SSL validation succeeded.
  • InvalidCertificate: The SSL certificate is invalid.
  • InvalidCertificateAuthority: The SSL certificate authority is invalid.
  • ConnectionClosed: The connection was closed during SSL validation.
  • RemoteCertificateNameMismatch: The name on the remote certificate does not match the expected name.
  • RemoteCertificateNotAvailable: The remote certificate is not available.
  • UnknownError: An unknown error occurred during SSL validation.

Remarks

The SslValidationResult enumeration is used to indicate the outcome of an SSL validation operation. It is typically returned by callback methods that are used to validate SSL certificates.

Requirements

Namespace: System.Net.Security

Assembly: System.Net.Primitives (in .NET Core and .NET 5+)

Assembly: System (in .NET Framework)

See Also

SslValidationResult Members | System.Net.Security Namespace