Class SslCertificate
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a single SSL certificate.
public class SslCertificate : GlobalSerializableClassicBase, IComparable<SslCertificate>
- Inheritance
-
SslCertificate
- Implements
- Derived
Constructors
SslCertificate()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.SslCertificate class.
public SslCertificate()
Properties
AuthorityKeyIdentifier
Gets or sets the authority key identifier of the certificate.
public string AuthorityKeyIdentifier { get; set; }
Property Value
CrlDistributionPoints
Gets or sets the certificate revocation list (CRL) distribution points for the specified certificate.
public SerializableStringCollection CrlDistributionPoints { get; set; }
Property Value
- SerializableStringCollection
EnhancedKeyUsages
Gets or sets the enhanced key usage permitted for this SSL certificate.
public SslCertificateEnhancedKeyUsages EnhancedKeyUsages { get; set; }
Property Value
EnhancedKeyUsagesString
Gets the enhanced key usages permitted for this SSL certificate as a human readable string.
public string EnhancedKeyUsagesString { get; }
Property Value
Remarks
This is used by the DataComparer only and is not written to XML.
ExpiryDate
Gets or sets the date until which this certificate is valid.
public DateTime ExpiryDate { get; set; }
Property Value
ExpiryDateString
Gets the expiry date as a string value.
public string ExpiryDateString { get; }
Property Value
FriendlyName
Gets or sets the friendly name of the certificate - for example when assigned to a web site, "www.sitename.com".
public string FriendlyName { get; set; }
Property Value
HasPrivateKey
Gets or sets whether the certificate contains a private key.
public BooleanOption HasPrivateKey { get; set; }
Property Value
Hash
Gets or sets the hash of the certificate - for example "37703C415BD0917410C40B9787BCA304216348AB".
public string Hash { get; set; }
Property Value
IsArchived
Gets or sets whether the certificate is archived.
public BooleanOption IsArchived { get; set; }
Property Value
IsValid
Gets whether the certificate is currently valid as of today's date.
public bool IsValid { get; }
Property Value
IssuedTo
Gets or sets the entity to which the certificate was issued.
public string IssuedTo { get; set; }
Property Value
Issuer
Gets or sets the full name of the issuer of the certificate - for example "Staat der Nederlanden Overheid CA, Staat der Nederlanden, NL".
public string Issuer { get; set; }
Property Value
IssuerName
Gets or sets the name of the company that issued the certificate - for example “Staat der Nederlanden Overheid CA”.
public string IssuerName { get; set; }
Property Value
KeyUsage
Gets or sets the permitted usage of this SSL certificate.
public SslCertificateUsageFlags KeyUsage { get; set; }
Property Value
KeyUsageString
Gets the basic permitted usage of this SSL certificate as a human readable string.
public string KeyUsageString { get; set; }
Property Value
PublicKey
Gets or sets the display information of the public key.
public string PublicKey { get; }
Property Value
PublicKeySize
Gets or sets the size of the public key in bits.
public int PublicKeySize { get; set; }
Property Value
PublicKeyType
Gets or sets the public key type - for example "RSA".
public string PublicKeyType { get; set; }
Property Value
Purposes
Gets or sets the purposes assigned to this certificate within the certificate store.
public SslCertificatePurposes Purposes { get; set; }
Property Value
PurposesString
Gets the purposes set for this SSL certificate on the certificate store as a human readable string.
public string PurposesString { get; }
Property Value
Remarks
This is used by the DataComparer only and is not written to XML.
SerialNumber
Gets or sets the serial number of the certificate – for example "01 31 69 b0".
public string SerialNumber { get; set; }
Property Value
SignatureAlgorithm
Gets or sets the Signature Algorithm of the certificate - for example "sha1RSA".
public string SignatureAlgorithm { get; set; }
Property Value
Subject
Gets or sets the full subject name of this certificate in LDAP format.
public string Subject { get; set; }
Property Value
SubjectAlternativeNames
Gets or sets the alternative subject names for this certificate.
public SerializableStringCollection SubjectAlternativeNames { get; set; }
Property Value
- SerializableStringCollection
SubjectName
Gets or sets the subject of this certificate - for example "www.centrel-solutions.com".
public string SubjectName { get; set; }
Property Value
Thumbprint
Gets or sets the thumbprint of the certificate - for example "934c7868dc83b19890f531ab21c41ad994aaf0d3".
public string Thumbprint { get; set; }
Property Value
ValidFrom
Gets or sets the date from which the certificate is valid.
public DateTime ValidFrom { get; set; }
Property Value
ValidFromString
Gets the date from which the certificate is valid.
public string ValidFromString { get; }
Property Value
Version
Gets or sets the version of the certificate.
public int Version { get; set; }
Property Value
Methods
CompareTo(SslCertificate)
Compares two CENTREL.XIA.Configuration.Types.SslCertificate objects to allow sorting by issued to field.
public int CompareTo(SslCertificate other)
Parameters
other
SslCertificateThe CENTREL.XIA.Configuration.Types.SslCertificate to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.SslCertificate objects.
ToDetailedString()
Returns this SSL certificate in a human readable format.
public string ToDetailedString()
Returns
- string
The SSL certificate in a human readable format.
ToString()
Returns the subject name of this certificate.
public override string ToString()
Returns
- string
The subject name of this certificate.