Click here to Skip to main content
Click here to Skip to main content

Enabling SSL with IIS Express in Visual Studio

By , 8 Feb 2014
Rate this:
Please Sign up or sign in to vote.

Introduction

Through this tip, we are going to enable SSL with IIS Express in Visual Studio.

Background

IIS Express is a lightweight and tiny version of IIS for developers to run and test the web sites directly from Visual Studio. I hope by this time you must be using it as your default development web server as well. Just to quickly recall, IIS Express was introduced with VS 2010 SP 1, where we used to have both Visual Studio Development Server (WebDev.WebServer) and IIS Express. However with Visual Studio 2013, IIS Express has been set as a default web server.

Using the Code

There are several features of IIS express which you can find very useful and be used in a similar way that we do with IIS. One of the great features of IIS express is to run your application in both default and SSL mode. You can achieve this very easily.

To enable the SSL with in IIS Express, you have to just set “SSL Enabled = true” in the project properties window.

By default SSL enabled is set to false with IIS Express; so if you run your web application first time, you will only be able to find the default URL and you can access the site over http.

Once the SSL is enabled (SSL Enabled = true); you can find both the URLs available in application browser window.

Points of Interest

With this, you can access any of the URLs from your browser and run the application in both modes.

Hope this helps.

Please let me know if you have any questions or comments.

History

  • 8th February, 2014: Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ahmed Bensaid
Architect Hawaii Consulting
France France

Software architect, web performer and mobile programming explorer ...
Wish to launch his own company in the near future.
 
Personal email : artefakt94[at]gmail.com
Professional email : ahmed.bensaid[at]hawaii-consulting.fr
 
Linkedin | Viadeo
 

Follow on   Twitter   LinkedIn

Comments and Discussions

 
Questionenabled but working? PinmemberMember 94305719-Mar-14 8:16 
Answerhelpful Pinmemberkosiso8-Feb-14 22:29 
GeneralRe: helpful PinprofessionalAhmed Bensaid9-Feb-14 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140421.2 | Last Updated 8 Feb 2014
Article Copyright 2014 by Ahmed Bensaid
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid