Install SSL Certificate for ASP.Net Core Webmaster

Now that ASP.Net Core has come out, I feel it's time to ask this question.

For my web application, I need to use the WebListener server due to business requirements for self-hosting and NTLM authentication for Windows identifiers. The Weblistener server needs an SSL certificate.

I created an SSL certificate and I know that for Kestrel it is output to the web server code (in Program.cs or Startup.cs). But what is the equivalent way to do this for a weblistener?

I found this post: How to use HTTPS with Microsoft.AspNet.Server.WebListener , but they never answered. A couple of hours of Googling didn’t show up for me.

From what I can say, this is some kind of command like:

netsh http add sslcert

But I am in my head in terms of what I need to do for the Weblistener. If possible, I would like the certificate to use code similar to Kestrel in the startup sequence (this is so convenient!), But I'm sure I need to install it using the command line.

Thank you in advance!

+4
source share
1 answer

As davidfowl said, the article https://weblog.west-wind.com/posts/2013/sep/23/hosting-signalr-under-sslhttps describes the necessary process and is well explained. He mentions SignalR instead of WebListener, but the procedure is the same.

, IIS ( , WebListener - -, IIS) Powershell - MMC .

0

All Articles