title: Install SSL Certificate for ASP.Net Core Weblistener
body: <p>Now that ASP.Net Core has been released I feel it's time to ask this question.</p>
  
  <p>For my web application, I need to use a WebListener server due a business requirement for self-hosting and NTLM authentication for Windows IDs. The Weblistener server needs an SSL Certificate.</p>
  
  <p>I have generated a SSL certificate and know that for Kestrel it is pulled up in the code of the web server (in Program.cs or Startup.cs). But what is the equivalent way to do that for Weblistener?</p>
  
  <p>I found this post: <a href="https://stackoverflow.com/questions/28527331/how-to-use-https-with-microsoft-aspnet-server-weblistener">How to Use HTTPS with Microsoft.AspNet.Server.WebListener</a> but it was never truly answered. A couple hours of Googling didn't turn up anything either for me.</p>
  
  <p>From what I can tell it is some kind of command like:</p>
  
  <pre><code>netsh http add sslcert
  </code></pre>
  
  <p>But I am in over my head in terms of what I need to do for Weblistener specifically. If possible, I'd love to pull in the certificate using code similar to Kestrel in the startup sequence (it's so convenient!), but I am pretty sure I need to install it with the command line.</p>
  
  <p>Thank you very much in advance!</p>