Below is a simple code that I am using to test this out:
class Program { static void Main(string[] args) { X509Certificate2Collection collection; using (var store = new X509Store(StoreLocation.LocalMachine)) { store.Open(OpenFlags.ReadOnly); collection = store.Certificates; } var cluster = Cluster.Builder() .AddContactPoints("192.168.14.11") .WithCredentials("cassandra","cassandra") .WithSSL(new SSLOptions().SetCertificateCollection(collection)) .Build(); ISession session = cluster.Connect(); global::System.Console.WriteLine("test") } }
I downloaded the cert file that LCM auto generated and placed it within my local machine. On the server side when i run the code i get this error:
javax.net.ssl.SSLException: Received fatal alert: unknown_ca
I have node to node and client to node encryption on. But the require_client_auth is set to false.