title: Enable / Disable SSL on ASP.NET Core projects in Development
body: <p>On an ASP.NET Core project, I am using SSL in Production so I have in Startup:</p>
  <pre class="lang-cs prettyprint-override"><code>public void ConfigureServices(IServiceCollection services) {
    services.AddMvc(x =&gt; {
      x.Filters.Add(new RequireHttpsAttribute());
    });  
    // Remaining code ...
  }
  
  public void Configure(IApplicationBuilder builder, IHostingEnvironment environment, ILoggerFactory logger, IApplicationLifetime lifetime) {
    RewriteOptions rewriteOptions = new RewriteOptions();
    rewriteOptions.AddRedirectToHttps();
    builder.UseRewriter(rewriteOptions);
    // Remaining code ...
  }
  </code></pre>
  <p>It works fine in Production but not in Development. I would like to either:</p>
  <ol>
  <li>Disable SSL in Development;</li>
  <li>Make SSL work in Development because with current configuration it is not.
  Do I need to set any PFX files on my local machine?<br />
  I am working on multiple projects so that might create problems?</li>
  </ol>