Delegate CertificateValidationCallback
Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication.
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public delegate CertificateValidationResult CertificateValidationCallback(X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors);
Parameters
Type | Name | Description |
---|---|---|
X509Certificate | certificate | The certificate used to authenticate the remote party. |
X509Chain | chain | The chain of certificate authorities associated with the remote certificate. |
SslPolicyErrors | sslPolicyErrors | One or more errors associated with the remote certificate. |
Returns
Type | Description |
---|---|
CertificateValidationResult | The validation result that determines whether the specified certificate is accepted for authentication. |
Remarks
Added in 6.4.
Examples
Setting certificate validation to allow any remote certificate.
var factory = Diffusion.Sessions
.CertificateValidation( (certificate, chain, errors) => CertificateValidationResult.ACCEPT );