The client needs to use trust roots that match to the certificate that's used by the server. new SslCredentials() will use the default roots.pem which will only work for public servers that have a certificate signed by a renowned certificate authority (which very likely isn't your case). So you'll need to specify "roots.pem" that match your server's pfx.
Some examples: https://github.com/grpc/grpc/blob/aa0193db42cc497578fb0ae9d0e4caf6bfc3ff16/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs#L65 https://github.com/grpc/grpc-dotnet/blob/aca0a8def524cd40ac72c97a35ab2ad691f8a867/testassets/InteropTestsWebsite/Program.cs#L72 Additional useful resources are here: https://github.com/jtattermusch/grpc-authentication-kubernetes-examples On Wednesday, July 22, 2020 at 2:41:31 PM UTC+2 poulos...@gmail.com wrote: > The Question in short is > Can I use C# Full .NET Framework Client with C# .NET core client with a > secured Channel.? > Can you lead me to some examples where this is done? I could not find > anywhere if this can be done or It Cannot be done. > > Detail: > I made an example using .NET Framework client with Grpc C# Github > <https://github.com/grpc/grpc/tree/master/src/csharp> as the reference > and .NET Core client with this example from Grpc dotnet > <https://github.com/grpc/grpc-dotnet/tree/master/examples/Progressor> as > a the reference. > I was able to establish an insecure communication channel with > new Channel("127.0.0.1", 5000, ChannelCredentials.Insecure) > and the Non-Https port opened in 5000 in the ASP.NET Core server. > > When I try to connect with > var channel = new Channel("127.0.0.1", 5001, new SslCredentials()); > to the Https port 5000 in the ASP.NET Core ServerI > > How can I use a secure channel to communicate. I want to use the same pfx > + password combination. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4a78f11e-56a0-4fa5-b7d1-cd9e1667f920n%40googlegroups.com.