Search Results for

    Show / Hide Table of Contents

    Class CertificateConfigurationElement

    Defines where a certificate can be retrieved

    Inheritance
    System.Object
    CertificateConfigurationElement
    Namespace: ImageVault.Client.Configuration
    Assembly: ImageVault.Client.dll
    Syntax
    public class CertificateConfigurationElement : ConfigurationElement
    Examples

    Is configured like below to search for a certificate in the computers personal certificate store searching by a thumb print and ignoring validation

    The following will search for a certificate on disc, performing default certificate validation (ChainTrust)

    Constructors

    CertificateConfigurationElement()

    Declaration
    public CertificateConfigurationElement()

    Properties

    Filename

    Gets or sets the filename.

    Declaration
    public string Filename { get; set; }
    Property Value
    Type Description
    System.String

    The filename of the certificate. If this is set then all other location properties are ignored.

    FindValue

    Gets or sets the find value.

    Declaration
    public string FindValue { get; set; }
    Property Value
    Type Description
    System.String

    The value to search for. Is used in combination with X509FindType.

    StoreLocation

    Gets or sets the store location.

    Declaration
    public StoreLocation StoreLocation { get; set; }
    Property Value
    Type Description
    System.Security.Cryptography.X509Certificates.StoreLocation

    Defines the location of the certificate store that the search should take place. Can be either System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser to search for the current users certificates or System.Security.Cryptography.X509Certificates.StoreLocation.LocalMachine to search in the local machine store.

    StoreName

    Gets or sets the name of the store.

    Declaration
    public StoreName StoreName { get; set; }
    Property Value
    Type Description
    System.Security.Cryptography.X509Certificates.StoreName

    The name of the store. Can be any of the System.Security.Cryptography.X509Certificates.StoreName values. Most used are the My and TrustedPeople stores

    ValidationMode

    Get/Sets the ValidationMode of the CertificateConfigurationElement

    Declaration
    public X509CertificateValidationMode ValidationMode { get; set; }
    Property Value
    Type Description
    System.ServiceModel.Security.X509CertificateValidationMode

    Defines how the certificate should be validated, Default is System.ServiceModel.Security.X509CertificateValidationMode.ChainTrust. To disable validation (for self generated certificates) use System.ServiceModel.Security.X509CertificateValidationMode.None. This is not recommended in production environments.

    X509FindType

    Gets or sets the search type.

    Declaration
    public X509FindType X509FindType { get; set; }
    Property Value
    Type Description
    System.Security.Cryptography.X509Certificates.X509FindType

    Defines the property where the FindValue will be matched against.

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022