Step by Step: Configure ASP. NET Web applications using HTTPS, httpsasp.net

Source: Internet
Author: User

Step by Step: Configure ASP. NET Web applications using HTTPS, httpsasp.net

Address: http://www.cnblogs.com/jfzhu/p/4064654.html

Reprinted please indicate the source

 

For how HTTPS, SSL, and SSL certificates work, see

HTTPS (I) Principles of HTTPS

HTTPS (ii) SSL certificates

HTTPS-related events (iii) attack instances and defense

This document describes how to configure an https asp. NET Web Application in IIS.

 

(1) Enable Internet Information Services (IIS) Manager

 

(2) create a Self-Signed Certificate

A self-signed certificate is an identity certificate that is signed by its own creator. Certificates are signed by Certificate Authority. In general self signed certificates are fine for testpurpose but not for production.

There are two ways to create self-signed certificate:

  • Use IIS
  • Use the Visual Studio tool makecert.exe

This article only demonstrates how to use IIS to create self-signed certificate.

Open IIS Manager and double-click Server Certificates.

 

(3) Add a Website in IIS

 Select https for Type under Binding, the default port is 443 (http default port is 80), and SSL Certificate select self-signed certificate we created above.

 

(4) You can also add a Site Binding.

 

Click Add

 

(5) open a browser

 

Click the lock header next to the address bar to view the certificate

 

(6) Open the certificate management tool and view Trusted Root Certification Authorities

 

You can see that when self-signed certificate is created in IIS, the server has added it to the Trusted Root CA. On the client, you need to manually install the root certificate.

 

(7) Certificate Authority

To use a certificate trusted by the browser, you must use a Certificate Authority (CA) to issue the certificate to you, such as Verisign and Thawte. Self-signed Certificate can be used in the development and testing environment and should not be used in the production environment.


In aspnet, how does one set access to webconfig to redirect https to http?

For more information, see the article blog.csdn.net/..137154. The above is the rewrite of http to https. You can configure it yourself. Or write a program in Global to determine URL redirection.

How to configure IIS for the ASPNETweb application written in VS2008?

1. IIS7 is not installed by default in win7, so you need to add it yourself. Open Control Panel-programs and functions-"enable or disable Windows functions" on the left, and check "Internet Information Service". The system is only a basic function by default. You need to add related functions: for example, "Internet management module" and "Windows Authentication ". Click "OK" to complete the installation.
2. Open "Start Menu -- Microsoft Visual Studio 2008 -- Visual Studio Tools -- command line" and enter "aspnet_regiis-I" to complete the installation of asp.net.
3. Open Internet Information Service (IIS) manager, add a virtual directory, configure the application, and check whether the permission and Default homepage have the start page set for you, such as Default. aspx.
Please refer to the following article
Configure IIS (ASP.net) in win7)
Hi.baidu.com/.. B .html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.