SecureBlackbox Lite 2020 .NET Edition

Questions / Feedback?

TLSCertValidate Event

This event is fired upon receipt of the TLS server's certificate, allowing the user to control its acceptance.

Syntax

public event OnTLSCertValidateHandler OnTLSCertValidate;

public delegate void OnTLSCertValidateHandler(object sender, CertificatevalidatorTLSCertValidateEventArgs e);

public class CertificatevalidatorTLSCertValidateEventArgs : EventArgs {
  public string ServerHostname { get; }
  public string ServerIP { get; }
  public bool Accept { get; set; }
}
Public Event OnTLSCertValidate As OnTLSCertValidateHandler

Public Delegate Sub OnTLSCertValidateHandler(sender As Object, e As CertificatevalidatorTLSCertValidateEventArgs)

Public Class CertificatevalidatorTLSCertValidateEventArgs Inherits EventArgs
  Public ReadOnly Property ServerHostname As String
  Public ReadOnly Property ServerIP As String
  Public Property Accept As Boolean
End Class

Remarks

This event is fired during a TLS handshake. Use TLSServerChain property to access the certificate chain. In general case, components may contact a number of TLS endpoints during their work, depending on their configuration.

Accept is assigned in accordance with the outcome of the internal validation check performed by the component, and can be adjusted if needed.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 .NET Edition - Version 20.0 [Build 8166]