runtime: SslStream.AuthenticateAsClient hangs forever on linux-arm

There seems to be an issue with SslStream on arm-linux platform i have tried publish with both netcore 2.2 and the .net core 3.0 preview 6, same result.

private string Connect() {
            Console.WriteLine("Establing TCP Connection.");
            _tcpc = new TcpClient(_server, _port);
            _ssl = new SslStream(_tcpc.GetStream(), false);
            Console.WriteLine("SSL Handshake trying to validate certificate");
            System.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => true;
            try
            {
                _ssl.AuthenticateAsClientAsync(_server).Wait();
            }
            catch (AuthenticationException e) {
                Console.WriteLine("Exception: {0}", e.Message);
            }
            //
            //Reset State
            _lastReqPrefix = null;
            _reqCount = 1;
            //
            return ReadServerGreeting();
        }

The call to _ssl.AuthenticateAsClientAsync(_server).Wait(); just hangs forever, no exception is thrown.

I’m trying to run this on Raspbian GNU/Linux 9

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (13 by maintainers)

Most upvoted comments

@NiklasANCO glad it works on preview. Are you ok with closing this issue or do you think there is something left here?