Copy from http://benjii.me/2014/11/run-iis-express-on-port-443-using-ssl-and-wildcard-subdomains/
In this post I tackle running a website using wildcard subdomains over HTTPS and SSL all using just IISExpress.
If you have a multi-tenancy app, or rather an application that uses a wildcard subdomain to identify a user or dynamic subsite, then you may have run into trouble trying to test the subdomain functionality locally. The problem is compounded when you also want to ensure your site is served using HTTPS and SSL.
We’ll start basic and then move on to the more complex scenarios.
Important. Open Visual Studio in Adminstrator Mode.