title: This site can’t provide a secure connection asp.net core from dotnet linux
body: <p>I am currently developing an API using asp.net core 2.1. When I use the ide visual studio 2019 in windows I don't have problems running the project, but now  I am using manjaro linux and I compile by using dotnet console I have a error:
  <em>This site can’t provide a secure connection
  err_ssl_protocol_error</em></p>
  
  <p><img src="https://i.stack.imgur.com/RYn5i.png" alt="enter image description here"></p>
  
  <p>Most of the solutions I've seen are made using the framework asp.net or changing options  the visual studio IDE, so I can not implement it in my project. I have tried adding:</p>
  
  <pre><code>.UseSetting("https_port", "5000")
  </code></pre>
  
  <p>inside program.cs but it didn't work</p>
  
  <p>class program.cs</p>
  
  <pre><code>public static void Main(string[] args)
  {
      var host = CreateWebHostBuilder(args).Build();
      RunSeeding(host);//esta llamando el alimentador de la base de datos
      host.Run();
  }
  
  private static void RunSeeding(IWebHost host)
  {
      var scopeFactory = host.Services.GetService&lt;IServiceScopeFactory&gt;();
      using (var scope = scopeFactory.CreateScope())
      {
          var seeder = scope.ServiceProvider.GetService&lt;SeedDb&gt;();
          seeder.SeedAsync().Wait();
      }
  }
  
  public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
      WebHost.CreateDefaultBuilder(args)
          .UseSetting("https_port", "5000")
          .UseStartup&lt;Startup&gt;();
  </code></pre>
  
  <p>configure.cs class</p>
  
  <pre><code> public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  {
      if (env.IsDevelopment())
      {
          app.UseDeveloperExceptionPage();
      }
      else
      {
          // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
          app.UseHsts();
      }
  
      app.UseHttpsRedirection();
      app.UseMvc();                
  
  
      app.UseCors("AllowSpecificOrigin");
  
  
  }
  </code></pre>