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
messagestring
CertificateValidationException(string, Exception)
Creates a new instance with the specified message and inner exception.
public CertificateValidationException(string message, Exception innerException)
Parameters
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
CertificateValidationException(string, string?, string?)
Creates a new instance with the specified message and certificate details.
public CertificateValidationException(string message, string? certificateThumbprint, string? certificateSubject)
Parameters
messagestringA description of the validation failure.
certificateThumbprintstringSHA-1 thumbprint of the failing certificate.
certificateSubjectstringSubject DN of the failing certificate.
Properties
CertificateSubject
Subject distinguished name of the certificate that failed validation.
public string? CertificateSubject { get; }
Property Value
CertificateThumbprint
SHA-1 thumbprint of the certificate that failed validation.
public string? CertificateThumbprint { get; }