Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

eventTsmCustomTLSInternalServer.OnTLSOutgoingAlert

property OnTLSOutgoingAlert: TTLSAlertEvent read FOnOutgoingAlert write SetOnOutgoingAlert;
Fired when this side sends a TLS alert to the peer, on either a client or a server session; useful for diagnosing why a local handshake/decode operation aborted a connection. DOWNGRADE (TESTING ONLY - DO NOT USE IN PRODUCTION): on a client session, setting Fatal := False on an identity or usage alert lets it go on with the server certificate it refused; after a chain-validation alert no certificate is accepted. On a server session a downgraded alert leaves no client certificate (ClientCertificate nil). On TLS 1.3 it sends a warning-level error alert, which RFC 8446 section 6 forbids, and a conforming TLS 1.3 peer, this library included, closes the connection on receipt. See TCustomTLS_ContentLayer.OnOutgoingAlert.