Hosting Asp.net Core 6 Web API with SSL on a Specific Port

Viewed 16

I have developed Asp.net Core 6 Web Api and want to host it on my Windows server on a specific port that has SSL installed. Here is what I have done so far -

  • I have an SSL certificate which I added in the Personal store using certificate manager.
  • I installed this SSL certificate on Port 10001 and it got added successfully.
  • I created a subdomain and pointed it to this web server.

I want to run this API as an EXE hosted with Kestrel. I tried -

  • app.run("https://api.xxxxxx.com:10001")
  • I get an error that SSL Certificate could not be located.

Please help me with how to do this.

0 Answers
Related