akka.net
akka.net copied to clipboard
Custom RemoteCertificateVerificationCallback for dotnetty remoting transport (or general custom netty channels)
Is your feature request related to a problem? Please describe.
Most of my projects rely on a custom self-signed root cert, with which all other certificates are signed, and currently in C# I have to use a custom RemoteCertificateVerificationCallback on the SslStreams for networking, and DotNettyTransport has the ability to pass one into the constructor for TlsHandler, but there is currently no way short of duplicating all of DotNettyTransport to pass a parameter into there.
Describe the solution you'd like
Id like the option to, either through a Setup subtype allowing for programmatic passing of a delegate, or through a static method reference in a config file.
Describe alternatives you've considered
Ive considered duplicating DotNettyTransport to change the one line necessary to implement this but that is inelegant and potentially difficult to maintain.
Additional context Example of such a callback
Going with a Setup is probably the best way to handle this in the short run.