Dotnetcore or owin program enabled SSL method

https port need to bind SSL Certificates

The method of operation and the following steps:

  1. Create a certificate in IIS
  2. View the certificate fingerprint
  3. Using the command line interface and binding certificate
  4. The third step can be replaced for the creation of a new empty site, bind to the same port https port and bind the certificate, and then start and stop Web site, and then start owin or dotnetcore procedures, perpetrating a fraud

Using this method the following presentations:

1, create a certificate

Open IIS, on the server node (note, not the site node) Select "Server Certificate", double-click to enter the function, select "Create a self-signed certificate" on the right sidebar

 

Since matching application function name, OK, the certificate has been created

 

2. Create a new stations and binds the certificate (assuming that need to use the https port 8048): Fill in name, the Web site points to an empty directory, enable HTTPS, use SSL certificates

 

3, stop the Web site, or open a Web page real DOTNETCORE owin application, enter the test to test, the certificate will be prompted to risk, because it is self-signed, select "Advanced" to continue

Solution to the risk problem is: use the domain name, and apply a valid certificate for the domain name, and then install the certificate (reference: On the server https://www.cnblogs.com/lxf1117/p/6650647.html ), and on the website use the certificate (step 2)

 

 

Guess you like

Origin www.cnblogs.com/QinQouShui/p/10943856.html