Delegate CertificateValidationCallback
PUBLIC API
Custom certificate validation callback for mTLS connections. Invoked during TLS handshake on both client and server sides.
Namespace: Akka.Remote.Transport.DotNetty
Assembly: Akka.Remote.dll
Syntax
public delegate bool CertificateValidationCallback(X509Certificate2? certificate, X509Chain? chain, string remotePeer, SslPolicyErrors errors, ILoggingAdapter log)
Parameters
| Type | Name | Description |
|---|---|---|
| X509Certificate2 | certificate | The peer certificate to validate |
| X509Chain | chain | The X509 chain for validation |
| string | remotePeer | The remote address/peer identifier |
| SslPolicyErrors | errors | SSL policy errors from standard validation |
| ILoggingAdapter | log | Logger for diagnostics |
Returns
| Type | Description |
|---|---|
| bool | True to accept cert, false to reject |
Edit this page