Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Self-signed SSL with self host asp.net 5 application

$
0
0

I am having difficulty getting a self-signed ssl to work with my asp.net 5 mvc 6 application running as a self hosted app.  I created a self-signed cert using IIS, and used the following commands to connect it to the port I wanted:

netsh http add urlacl url=https://+:4445/ user=Everyone
netsh http add sslcert ipport=0.0.0.0:4445 certhash=96c05809fa518b312cee4045cc7da53d2b766c4d appid={4dc3e181-e14b-4a21-b022-59fc669b0914}

I also added to the hosting.json file the following:  "server.urls": "http://0.0.0.0:5000;https://0.0.0.0:4445"

When it runs using dnx, it says it is listening on those ports, but when I try to go tohttps://192.168.0.120:4445 it just hangs saying "Establishing Secure Connection" until it times out.  Any suggestions?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>