Closed shaan1337 closed 5 months ago
Sample code:
class Program { static async Task Main(string[] args) { var certPath = "/path/to/user.crt"; var certKeyPath = "/path/to/user.key"; var connectionString = $"esdb://127.0.0.1:2113,127.0.0.2:2113,127.0.0.3:2113?tls=true&tlsVerifyCert=false&certPath={certPath}&certKeyPath={certKeyPath}"; var settings = EventStoreClientSettings.Create(connectionString); using (var client = new EventStoreClient(settings)) { await client.SubscribeToStreamAsync( streamName: "test", start: FromStream.Start, eventAppeared: (sub, evt, ct) => { Console.WriteLine(evt.Event.EventStreamId + " " + evt.OriginalEventNumber); return Task.CompletedTask; }); Console.ReadLine(); } } }
Manual tests carried out:
TODO:
POC [DB-283](https://linear.app/eventstore/issue/DB-283/x509-certificate-authentication-for-clients)
I am closing this PR as I started a cleaner version to address the same feature. see #295
Sample code:
Manual tests carried out:
TODO: