10.24.0

SessionPropertiesSSLClientCertificate Property

The client certificate object to be used by ISession objects when the session's AuthenticationScheme property is set to CLIENT_CERTIFICATE. When specified, the certificate object must have a valid PrivateKey property referring to either a RSA or a DSA private key object. This property is mutually exclusive with SSLClientCertificateFile, SSLClientPrivateKeyFile, and SSLClientPrivateKeyFilePassword. Either the certificate and private key are specified via the X509Certificate2 object, or they are specified via the aforementioned filename-based properties. If both are specified, an exception will be thrown.
This Property is restricted and has different behaviour for the following SessionProperties operation: Serialization, this Property is not serialized; FromDictionary(IDictionaryString, String), this Property can not be set from this operation; ToDictionary, this Property can not be added to the Dictionary result of this operation; ToString, this Property does not have an equivalent ToString field;

Default: null

Definition

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.24.0
C#
public X509Certificate2 SSLClientCertificate { get; set; }

Property Value

X509Certificate2

Exceptions

ArgumentNullException Thrown when the client certifificate's PrivateKey property is null or the Handle is Zero.
ArgumentOutOfRangeException Thrown when the client certificate's PrivateKey property is not of one of the following types:
  • RSA
  • DSA

See Also