title: .Net Core 2.0 Webservice and TLS 1.2/certificate
body: <p>I'm trying to setup a webservice using .NET Core 2.0 running in Docker. Since I don't have much experience with core I did some research, found soapcore and was able to run a webservice in docker.</p>
  
  <pre><code>    public class Startup
  {
      public void ConfigureServices(IServiceCollection services)
      {
          services.TryAddSingleton&lt;SampleService&gt;();
          services.AddMvc();
      }
  
      public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
      {
          loggerFactory.AddConsole();
          loggerFactory.AddDebug();
  
          app.UseSoapEndpoint&lt;SampleService&gt;("/Service.svc", new BasicHttpBinding(), SoapSerializer.DataContractSerializer);
          app.UseSoapEndpoint&lt;SampleService&gt;("/Service.asmx", new BasicHttpBinding(), SoapSerializer.XmlSerializer);
  </code></pre>
  
  <p>I also found a couple of resources on how to implement TLS, but they seem to be a little outdated since they all refere to some <em>project.json</em>-file which seems to be outdated.</p>
  
  <p>Long story short: is there someone who could point me in the right direction or explain to me where and how I could establish TLS in my application, put my certificates and such?</p>
  
  <p>Best
  Gerrit</p>