With an SSL certificate, how can I deploy HTTPS in an IIS environment? Reproduced

Source: Internet
Author: User

Yesterday all the small partners are very happy to receive their own SSL certificate, but most of the small partners do not know how to deploy, perhaps because the first contact with SSL this high-end things, but personally think is lazy lazy ... Originally small made up also quite lazy, but promised everyone small partners, then today teaches you how to deploy HTTPS certificate in IIS environment. (Recommended for PC-side reading)

1, first we have to take away our certificate, stored in our local computer, and then copied to the server.

2. What do you do next after you take it away? Open the file, of course, and see what's inside. We found the IIS compressed package and unzipped it.

3, parse to get PFX file, that is, we need to deploy a domain name certificate file.

4, small partners can do these parsing on the server, but also can be like a small part of the local, and then create a folder within the server, the need to copy the things in it. (Do not cut, you know, even if you do not know you will go to Baidu)

5. Then open the IIS Control Panel for the server.

6. Then open the IIS home page to find the server certificate bar, double-click to open.

7, double-click Open, select Import, import the PFX file we just extracted, this PFX file is the one you need to deploy the domain name of the file.

8, this time we take HTTPS to open our deployment of the website, now show is still red.

9, now we go to find the site we need to deploy, in the Server site column, double-click bindings.


10. Then we click Add, add, add select https,443 port.

11, this time we open the HTTPS website through the browser.

12, Green has there? Green, green, ah ... It's green. Fell in love with a wild horse, but my home has no prairie, but it is green a piece ... Security small lock sign AH no ... Wait, did we forget something? When we open the www.domain.com again, it's still gray. There is still no green, this kind of want to be green feel? (Suddenly good distressed baby).

13, you Baby Mo Panic, hold me tight, next small taping everyone how to access the default is the HTTPS path. To do the default access to HTTPS, you may want to do jump, but HTTPS seems to have a tall name called URL rewrite. We need to download a rewrite component on IIS.

IIS7.5:

English 32-bit: Http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi

English 64-bit: Http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_zh-CN.msi

English: Http://www.iis.net/downloads/microsoft/url-rewrite

IIS 8 Installation URL rewrite reference http://shiyousan.com/post/635646254870261696

After the download, you will find that our IIS interface has a URL rewrite of the components, no beginning, yes, I was just down.

The only way to make use of URL rewriting is to implement HTTP jump HTTPS.

So, before you deploy, Please check the Web site root directory if there is a Web. config file, if so, please back up the Web. config file here, because the following configuration May and Web. config jump conflict, personal suggestions are directly deleted processing, after all, the old do not go to the new not to come, hahaha (recommended first backup).

14. Then continue to the next step, double-click Open, add Rule.

15. Fill in the rule name: Redirect to HTTPS, use regular expressions, fill in the pattern (. *), and then select Add Condition. The first {HTTPS} matches the pattern ^off$, and the second fill {https_host} does not match the pattern ^ (localhost).

16. Type of action Select Redirect, and then select Properties for https://{http_host}/{r:1} redirection type Select 303.

17, the last step, check the next point to save.

18, now we can go to see our website, direct input www.domain.com.

Very strong, very green, 13.

The above is the tutorial is implemented in the IIS7 environment, very simple, very quickly, because we are deploying a Chinese version of the SSL certificate, so it will be faster, if the small partner chooses the other SSL provider or the English version may be slow, the additional need for information may not be the same, One of the auxiliary tools needed in the deployment process is the URL rewrite component, other environments need other components, everyone in the deployment process have any questions can leave a message to the small, if the small series know must first tell you. Welcome to the small friends of the positive message exchange, small in this first thank you.

Turn from:

With an SSL certificate, how can I deploy HTTPS in an IIS environment? -Today's headline (toutiao.org)
http://www.toutiao.com/i6322704130540306946/

With an SSL certificate, how can I deploy HTTPS in an IIS environment? Reproduced

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.