Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1529

HTTPS disconnected - Kestrel

$
0
0

I'm looking for suggestions why I get disconnected from my Web Service.

In a web browser, I get

ERR_CONNECTION_CLOSED

Or in Fiddler Classic:

HTTPS handshake to myserver.mydomain.com (for #82) failed. System.IO.IOException Authentication failed because the remote party has closed the transport stream.

The Operating System is Windows Server 2019 (I understand TLS 1.3 is not supported)I have set the TLS 1.2 registry keys on the server:Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2 for both the for both Client and Server keys:

  • Enabled = 1
  • DisabledByDefault = 0

It is an ASP.Net 8 Web API.It is hosted by a Windows Service running Kestrel (no IIS).

It uses a non-standard port (8000). A firewall rule permits traffic over that port.

My certficiate has DNS Name=mydomain.myserver.com in its Subject Alternative Name.The certificate is valid and has not expired.I attach this certificate with

options.ConfigureHttpsDefaults(httpsOptions =>  {    httpsOptions.SslProtocols = SslProtocols.Tls12;    httpsOptions.ServerCertificate = cert;  });

The service seems to think it is working fine. The log says:

Now listening on: https://[::]:8000

I was expecting to see https://myserver.mydomain.com:8000, but oh well.

If I switch to HTTP over the same port on the same host, it works fine.


Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>