Click here to Skip to main content
12,300,841 members (63,525 online)
Click here to Skip to main content
Add your own
alternative version

Stats

27.5K views
10 bookmarked
Posted

Visual Studio 2013 Use HTTPS (SSL) On Web Application Projects

, 30 Apr 2014 CPOL
Rate this:
Please Sign up or sign in to vote.
This tip teaches you how to enable HTTPS (SSL) on Visual Studio 2013 Web Projects

Introduction

Sometimes (increasingly), we need to develop and deploy a secure web site that uses https protocol.

Within the new version of Visual Studio (2013), we now can easily create, develop and test our web application on https.

How To

To enable the secure https protocol within our web projects, just follow these steps.

Once you have created your project, go in the properties window and search the setting property "SSL Enabled" by default is set to False.

Set the "SSL Enabled" property to True.

Once you change the value, Visual Studio set in automatic the SSL URL, e.g., https://localhost:44301/.

At this point, we can go in the advanced properties of the project (Alt + Enter), select the Web tab and set the Project URL with the same value of SSL URL, e.g., https://localhost:44301/.

Once you have configured the default URL of the web application, we can run the site (F5 or CTRL + F5).

The first time you set the secure protocol on IIS Express, you will be prompted to install the certificate for SSL.

After installation, now you can browse our application using the https protocol!

I hope you enjoy.

Happy coding! Wink | ;)

License

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

Share

About the Author

congiuluc
Web Developer
Italy Italy
I am an Italian developer specialized on ASP.NET web applications.
I consider myself a lucky person because my work coincides with my passion: Develop code!
I began to develop code from the age of about ten years with the infamous Commodore 64.
My turning point was the advent of the internet since 1995 and I started to develop websites first static and then dynamic (ASP) before moving to. NET platform since then ... I do not have more 'stopped!

You may also be interested in...

Comments and Discussions

 
QuestionDoest work Pin
Member 1146949921-Feb-15 10:01
memberMember 1146949921-Feb-15 10:01 
QuestionAvailable in Visual Studio 2012 as well. Pin
Dev Enthusiast1-May-14 12:22
memberDev Enthusiast1-May-14 12:22 
AnswerRe: Available in Visual Studio 2012 as well. Pin
congiuluc4-May-14 6:05
membercongiuluc4-May-14 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web02 | 2.8.160525.2 | Last Updated 30 Apr 2014
Article Copyright 2014 by congiuluc
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid