serilog-sinks-graylog icon indicating copy to clipboard operation
serilog-sinks-graylog copied to clipboard

TcpTransport can we override ?

Open aqkhana2002 opened this issue 2 years ago • 0 comments

we are missing the certificate option in TcpTransport, I don't want to install the certificate on my machine, here is what I am doing in Graylog, but my company wants to use your package.

` X509Certificate2 certificate2 = new X509Certificate2("C:/Developer/Shared/test.pfx",""); X509Certificate2Collection certificates = new X509Certificate2Collection(new X509Certificate2[] { certificate2});

            await _sslStream.AuthenticateAsClientAsync(_sslHost, certificates, SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12, false).ConfigureAwait(false);
            X509Certificate remoteCertificate = _sslStream.RemoteCertificate;`

aqkhana2002 avatar Jan 24 '22 07:01 aqkhana2002