公司调试HTTPS接口会用到,原文:http://www.codeproject.com/Tips/766918/Visual-Studio-Use-HTTPS-SSL-On-Web-Application-Pro

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!

最新文章

  1. zabbix特性
  2. BZOJ2646 : neerc2011 flight
  3. Logistic回归小结
  4. PL/SQL之--包
  5. [Effective JavaScript 笔记]第23条:永远不要修改arguments对象
  6. ***PHP 去除换行符
  7. Delphi 7下使用Log4Delphi 0.8日志组件
  8. asp.net微软认证全新考试题库及答案1
  9. Struts2拦截器介绍
  10. 【转】Netty系列之Netty是什么
  11. temp-存储过程 以前的
  12. 2017蓝桥杯省赛C/C++B(补题中)
  13. action之间传参为中文;type='redirect'和 type='redirectAction'主要区别
  14. 1. Java面向对象之泛型-认识泛型
  15. 一篇文让你看懂NB-IoT、LoRa、eMTC、Sigfox及ZigBee的应用场景【转】
  16. 注意Delphi 10.3.1中Trunc函数的问题
  17. 弃 Java 而使用 Kotlin 的你后悔了吗?| kotlin将会是最好的开发语言
  18. UART简介及与COM口的区别
  19. 喵哈哈村的魔法考试 Round #18 (Div.2) 题解
  20. 基于jQuery仿去哪儿城市选择代码

热门文章

  1. Java虚拟机类型卸载和类型更新解析(转)
  2. JavaEE(4) - JMS实现企业PTP消息处理
  3. 使用Eclipse+Maven+Jetty构建Java Web开发环境(几个教程综合集成2014发行)
  4. NYNU_省赛选拔题(3)
  5. [转]JS中的prototype
  6. React.js再探(三)
  7. hibernate 一对多关联关系(具体分析)
  8. 栈 & 堆 |--> 内存管理
  9. SOA、REST 和六边形架构
  10. AngularJS应用开发思维之3:依赖注入