Where can I specify my SSL port for IISExpress?

OK, so I had the opportunity to change the SSL port number in the project properties dialog box, but after updating asp.net 5 RC1, the SSL field is read-only:

enter image description here

It ignores the SSLPort value when I try to edit .xproj directly:

<PropertyGroup> <SchemaVersion>2.0</SchemaVersion> <DevelopmentServerPort>17204</DevelopmentServerPort> <SSLPort>44303</SSLPort> </PropertyGroup> 

And it also resets the port in my application host configuration file ($ [solutionDir] .vs \ config \ applicationhost.config) back to the original value when changing the binding and starting my project.

  <site name="WebApplication1" id="8"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="C:\WebApplication1\wwwroot" /> </application> <bindings> <binding protocol="http" bindingInformation="*:17833:localhost" /> <binding protocol="https" bindingInformation="*:44303:localhost" /> </bindings> </site> 

What gives? Where does Visual Studio get this value and how to change it?

+6
source share
1 answer

Open launchSettings.json in the ./Properties folder. The int value in iisSettings> iisExpress> sslPort is where it reads. You can change this value to whatever you want.

 { "iisSettings": { "iisExpress": { "sslPort": <ssl-port-value> } } } 
+10
source

All Articles