MagicOnion icon indicating copy to clipboard operation
MagicOnion copied to clipboard

Question: How can I connect the TLS protocol to the new version (v5.1.8)?

Open roman-b-games opened this issue 2 years ago • 4 comments

The last guide was written about 3 years ago and the connection is made using the unsupported MagicOnion.Hosting. Therefore, I can't understand how to do it and whether it's even possible.

roman-b-games avatar Nov 28 '23 10:11 roman-b-games

@mayuki +1, can't connect to 5.1.8 with GrpcChannelx.ForAddress("https:// ... ") , net standard 2.0 Grpc.Core , unity 2020.3. Grpc.Core.RpcException: 'Status(StatusCode="Unavailable", Detail="failed to connect to all addresses", ...') Server side: traefik + letsEncrypt + ssl termination.

With Net.Client works fine. But we can't upgrade to unity 2021+

Danila24ru avatar Dec 05 '23 18:12 Danila24ru

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jun 03 '24 00:06 github-actions[bot]

@mayuki I am getting this Error on client side:

Unhandled exception. Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: The SSL connection could not be established, see inner exception. AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch, RemoteCertificateChainErrors", DebugException="System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.")

I am running the in production config in a docker container.

07prajwal2000 avatar Jun 19 '24 17:06 07prajwal2000

From the message RemoteCertificateNameMismatch, it appears that there is a problem with the name of the certificate not matching. Try connecting to that port with HttpClient and see if an error occurs.

mayuki avatar Jun 20 '24 09:06 mayuki

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Dec 18 '24 00:12 github-actions[bot]