On the nfig file under the the "" element a new entry is made when the project is first run before you enable SSL. I hit "Create Virtual Directory" at this point although some blogs say that is not necessary that you only need save the project and run it in debug. Copy that SSL URL and go back to the project properties page and paste that in there as the new Project URL.(Sometimes this has to be done a couple of times before the properties show up.) This will have three properties, SSL Enable which defaults to false, SSL URL which is blank with a new project and URL which is set to the URL in "project URL" on the properties tab.Ĭhange the SSL enabled property to true, and a new SSL URL will be created. Then select the Project on the solution explorer and go to the properties tab. There should be a project URL saying something like (which should be the same port that is set as "specific port" under the Visual Studio Development Server setting (if it is set)
(There should be a grayed out checkbox saying Use IIS Express if you don't have regular IIS install on you machine (which can't be done on these NMCI machines.) On the Project properties page on the Web tab, change Use Visual Studio Developer Server to Use Local IIS web Server. An older project transferred to VS2012 may have to actually change that setting. The next two steps have to both be performed in Visual Studioīy default when a new project is create in VS 2012 then it is created as an IIS Express project. But at no point does he refer to making the site require client certificates.Ĭhange nfig (There are two of these one at MyDocuments\IISExpress\config and the other at program files\IIS Express\AppServer by default the one under your profile is used when you run a project on IISExpress in VS 2012 The other can be run using the command line which is what I did on the local test machine.) (But that page no longer exists.) Scott Hanselman also talks about enabling SSL at. These were the instructions handed out by Jason Shavers in his blog.
Locate the IIS Express config file nfig: In 2015 or 2017, the file is located in \.vs\config\ - in earlier versions it's found in %UserProfile%\Documents\IISExpress\config\.
Set your project to start in SSL mode: Go to Project Properties (Alt+Enter), select the Web tab and modify the Project Url to the one from step 3.Enable SSL for your project: View the properties of the project (F4) -> SSL Enabled to True (notice the SSL URL property gets populated).Using Visual Studio, create a new web application.Install the certificate (note the private key is only necessary from the client side) on the development machine (it should be visible in browser's certificate lists in their settings).Apparently the location of the nfig files changed in Visual Studio 2015 and up.
I found a blog that detailed how to configure client certificate requests for IIS Express (I used Visual Studio 2017, IISExpress 10.0). Use the IIS Manager tool and follow the Microsoft documentation IIS Client Certificate Mapping Authentication.