how to configure SSL when self hosting Web api in https in local machine
<p>I want to build a desktop app, which accepts triggers from the browser (my web application runs in https). As a solution i have implemented self hosting web api with OWIN which uses self signed certificate. </p>

<p>Registered the certificate for https using netsh command</p>

<pre><code>netsh http add sslcert ipport=0.0.0.0:4443 certhash=‎40514d4576059d0c1c205c7b820cc0a407915b65 appid={163ea903-b9fd-4019-9c5c-7cdf158111a6}
</code></pre>

<p>Now when i try to send http request, browser complains that the certificate is not valid.</p>

<pre><code>https://localhost:4443/api/download
</code></pre>

<p>Is it possible to create/buy valid certificates for localhost? (my app will be running on different user machines) Is there any other way i can solve my situation ( solving browser to local app communication)?</p>