-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FullFramework (.Net 4.7.2) Client with .Net 5 gRPC Serivce and kestrel -- How to get the communication working (SSL) #1188
Comments
Documentation for making gRPC calls is available here: https://docs.microsoft.com/en-us/aspnet/core/grpc/client?view=aspnetcore-5.0
|
Thx I now but does work Grpc.Net.Client with the FullFramework (.Net 4.7.2)? --> I thought this will only work with .Net Core v X and newer? Am I wrong? And how the the Grpc.Net.Client interact with the Windows cert store when the client and server are on different computers? |
I know that grpc.net.client only works for the new world (.net core/.net 5.0) therefore I use the Grpc Core package that works also for .net 4.7.2 applications. The question is can you point me to the code in this repo where grpc.net.client figures out the correct certificate from the client so that this can be used for the communcation? |
Grpc.Net.Client uses HttpClient internally. It automatically handles HTTPS related tasks. |
The solution isn't clear to me... how is .Net 4.7.2 supported via Grpc.Net.Client? I have what I think is the same question for a .Net 4.8 client. I chose Grpc.Core because it works with netstandard 2.0 and 4.8. Moving to .Net 5 is not an option. NuGet reports:
|
Docs are coming - dotnet/AspNetCore.Docs#21689 |
I see. It’s in NuGet pre-release.
|
Excuse me, I wrote a gRPC server with .net 5, I need to build a client with .net framework 4.8. I've followed these: Even using System.Net.Http.WinHttpHandler version 6.0.0-preview.3.21201.4, I get this error:
|
You aren't using a supported version of Windows. |
You are right, is there any workaround from .net framework ? |
No |
At the moment we need that an old application(.net 4.7.2) request data from a new application (.net 5.0) via gRPC.
However the client for the full framework seems not to send the certificate to the server automatically, therefore we are doing it manually (at the moment), like so (taken from https://stackoverflow.com/questions/58125102/grpc-net-client-fails-to-connect-to-server-with-ssl) :
This works fine, but when the grpc client and the grpc server are on different computer this does not work (of course) --> and now my question is how is this implemented in the grpcClient for .Net Core/.Net 5.0, because there it's working out of the box, some advice would be highly appreciated!
We don't want to store the certifiacte (pem) on the client and then read it from the disk and then use it, because everytime the certificate changes we would have to change the pem on the client as well (and we have a lot of services on different servers and also different stages).
The text was updated successfully, but these errors were encountered: