Class CertificateSecurityState
Details about the security state of the page certificate.
public sealed record CertificateSecurityState : IEquatable<CertificateSecurityState>
- Inheritance
-
CertificateSecurityState
- Implements
- Inherited Members
Constructors
CertificateSecurityState(string, string, string, ImmutableArray<string>, string, string, TimeSinceEpoch, TimeSinceEpoch, bool, bool, bool, bool, bool, bool, bool)
Details about the security state of the page certificate.
public CertificateSecurityState(string Protocol, string KeyExchange, string Cipher, ImmutableArray<string> Certificate, string SubjectName, string Issuer, TimeSinceEpoch ValidFrom, TimeSinceEpoch ValidTo, bool CertificateHasWeakSignature, bool CertificateHasSha1Signature, bool ModernSSL, bool ObsoleteSslProtocol, bool ObsoleteSslKeyExchange, bool ObsoleteSslCipher, bool ObsoleteSslSignature)
Parameters
ProtocolstringProtocol name (e.g. "TLS 1.2" or "QUIC").
KeyExchangestringKey Exchange used by the connection, or the empty string if not applicable.
CipherstringCipher name.
CertificateImmutableArray<string>Page certificate.
SubjectNamestringCertificate subject name.
IssuerstringName of the issuing CA.
ValidFromTimeSinceEpochCertificate valid from date.
ValidToTimeSinceEpochCertificate valid to (expiration) date
CertificateHasWeakSignatureboolTrue if the certificate uses a weak signature algorithm.
CertificateHasSha1SignatureboolTrue if the certificate has a SHA1 signature in the chain.
ModernSSLboolTrue if modern SSL
ObsoleteSslProtocolboolTrue if the connection is using an obsolete SSL protocol.
ObsoleteSslKeyExchangeboolTrue if the connection is using an obsolete SSL key exchange.
ObsoleteSslCipherboolTrue if the connection is using an obsolete SSL cipher.
ObsoleteSslSignatureboolTrue if the connection is using an obsolete SSL signature.
Properties
Certificate
Page certificate.
public ImmutableArray<string> Certificate { get; init; }
Property Value
CertificateHasSha1Signature
True if the certificate has a SHA1 signature in the chain.
public bool CertificateHasSha1Signature { get; init; }
Property Value
CertificateHasWeakSignature
True if the certificate uses a weak signature algorithm.
public bool CertificateHasWeakSignature { get; init; }
Property Value
CertificateNetworkError
The highest priority network error code, if the certificate has an error.
public string? CertificateNetworkError { get; init; }
Property Value
Cipher
Cipher name.
public string Cipher { get; init; }
Property Value
Issuer
Name of the issuing CA.
public string Issuer { get; init; }
Property Value
KeyExchange
Key Exchange used by the connection, or the empty string if not applicable.
public string KeyExchange { get; init; }
Property Value
KeyExchangeGroup
(EC)DH group used by the connection, if applicable.
public string? KeyExchangeGroup { get; init; }
Property Value
Mac
TLS MAC. Note that AEAD ciphers do not have separate MACs.
public string? Mac { get; init; }
Property Value
ModernSSL
True if modern SSL
public bool ModernSSL { get; init; }
Property Value
ObsoleteSslCipher
True if the connection is using an obsolete SSL cipher.
public bool ObsoleteSslCipher { get; init; }
Property Value
ObsoleteSslKeyExchange
True if the connection is using an obsolete SSL key exchange.
public bool ObsoleteSslKeyExchange { get; init; }
Property Value
ObsoleteSslProtocol
True if the connection is using an obsolete SSL protocol.
public bool ObsoleteSslProtocol { get; init; }
Property Value
ObsoleteSslSignature
True if the connection is using an obsolete SSL signature.
public bool ObsoleteSslSignature { get; init; }
Property Value
Protocol
Protocol name (e.g. "TLS 1.2" or "QUIC").
public string Protocol { get; init; }
Property Value
SubjectName
Certificate subject name.
public string SubjectName { get; init; }
Property Value
ValidFrom
Certificate valid from date.
public TimeSinceEpoch ValidFrom { get; init; }
Property Value
ValidTo
Certificate valid to (expiration) date
public TimeSinceEpoch ValidTo { get; init; }