Table of Contents

Class SslCertificateStores

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a collection of SSL certificate stores.

public class SslCertificateStores : BypassSection
Inheritance
SslCertificateStores
Inherited Members

Constructors

SslCertificateStores()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.SslCertificateStores class.

public SslCertificateStores()

Properties

Items

Gets or sets the items within the collection

public SslCertificateStoreCollection Items { get; set; }

Property Value

SslCertificateStoreCollection

Methods

FindByName(SslCertificateStoreName)

Finds the certificate store using the specified internal store name, returning null if no store with that name is found in the collection.

public SslCertificateStore FindByName(SslCertificateStoreName name)

Parameters

name SslCertificateStoreName

The internal Windows store name - for example "MY".

Returns

SslCertificateStore

The CENTREL.XIA.Configuration.Types.SslCertificateStore with the specified name.

FindCertificate(string)

Finds the SSL certificate with the specified friendly name in any known store, or returns null if no certificate with that friendly name exists.

public SslCertificate FindCertificate(string friendlyName)

Parameters

friendlyName string

The friendly name of the certificate - for example "www.sitename.com".

Returns

SslCertificate

The CENTREL.XIA.Configuration.Types.SslCertificate with the specified friendly name.

FindCertificateByDN(string)

Finds the SSL certificate with the specified distinguished name in any known store, or null if no certificate with that distinguished name exists

public SslCertificate FindCertificateByDN(string distinguishedName)

Parameters

distinguishedName string

The distinguished name name of the certificate - for example "Staat der Nederlanden Overheid CA, Staat der Nederlanden, NL"

Returns

SslCertificate

The CENTREL.XIA.Configuration.Types.SslCertificate with the specified distinguished name.

FindCertificateByThumbprint(string)

Finds the SSL certificate with the specified thumbprint name in any known store, or returns null if no certificate with that thumbprint exists.

public SslCertificate FindCertificateByThumbprint(string thumbprint)

Parameters

thumbprint string

The thumbprint of the certificate to find.

Returns

SslCertificate

The CENTREL.XIA.Configuration.Types.SslCertificate with the specified thumbprint.

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.SslCertificateStores class from the specified XML.

public static SslCertificateStores FromXml(string xml)

Parameters

xml string

The XML representation of the object.

Returns

SslCertificateStores

A CENTREL.XIA.Configuration.Types.SslCertificateStores class.

GenerateChain(SslCertificate)

Generates the trust chain for the certificate.

public SslCertificateChain GenerateChain(SslCertificate certificate)

Parameters

certificate SslCertificate

The certificate whose chain should be generated.

Returns

SslCertificateChain

A list of certificate names in the chain.

Remarks

This method has a maximum depth of 20 SSL certificates in the chain.

ToDetailedString()

Returns the certificate stores in the collection as a human readable string.

public string ToDetailedString()

Returns

string

The certificate stores in the collection as a human readable string.

ToString()

Returns the SSL certificate stores as a human readable string - for example "10 Certificate Stores" or "{Not Documented}".

public override string ToString()

Returns

string

The SSL certificate stores as a human readable string.