Table of Contents

Class CertificateValidationException

Namespace
SimpleSign.Core.Validation
Assembly
SimpleSign.Core.dll

Thrown when a certificate fails validation — for example, when the certificate chain cannot be built, the certificate has expired, or the root CA is not trusted.

public sealed class CertificateValidationException : ValidationException, ISerializable
Inheritance
CertificateValidationException
Implements
Inherited Members

Constructors

CertificateValidationException()

Creates a new instance with no message.

public CertificateValidationException()

CertificateValidationException(string)

Creates a new instance with the specified message.

public CertificateValidationException(string message)

Parameters

message string

CertificateValidationException(string, Exception)

Creates a new instance with the specified message and inner exception.

public CertificateValidationException(string message, Exception innerException)

Parameters

message string
innerException Exception

CertificateValidationException(string, Exception, string?, string?)

Creates a new instance with the specified message, inner exception, and certificate details.

public CertificateValidationException(string message, Exception innerException, string? certificateThumbprint, string? certificateSubject)

Parameters

message string
innerException Exception
certificateThumbprint string
certificateSubject string

CertificateValidationException(string, string?, string?)

Creates a new instance with the specified message and certificate details.

public CertificateValidationException(string message, string? certificateThumbprint, string? certificateSubject)

Parameters

message string

A description of the validation failure.

certificateThumbprint string

SHA-1 thumbprint of the failing certificate.

certificateSubject string

Subject DN of the failing certificate.

Properties

CertificateSubject

Subject distinguished name of the certificate that failed validation.

public string? CertificateSubject { get; }

Property Value

string

CertificateThumbprint

SHA-1 thumbprint of the certificate that failed validation.

public string? CertificateThumbprint { get; }

Property Value

string