Saturday, April 18, 2015

Configuring Visual Studio for SSL

If you are using OWIN and OAuth2, you may have encountered a requirement to develop using SSL.

Well, fortunately, developing with SSL using Visual Studio is extremely easy!

First, click on the Project Properties (Properties Window) for the ASP.NET Web Project:






You can also get to this Properties Window by selecting the Properties Window from the View menu:


Then choose the SSL Enabled option and change it to "True"




This will immediately provide you with an SSL URL for browsing your Web Application.  The first time you browse your SSL Web Application, you will get the following 2 dialogs:




Since it is a self-signed SSL certificate, you may get the following warnings (shown for Firefox):






Once you Confirm the Security Exception, you will be able to browse your Web Application using a Secured Url!




No comments:

Post a Comment