问题 I'm making an application that involves a website on localhost as a user interface with Asp.net Core and SignalR Core. My problem is that I get an authentication exception when starting the connection. I know this happens because I haven't ran dotnet dev-certs https --trust . But I can't expect an average user to run this command or have the dotnet SDK installed at all. I've tried using ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) =>