Click here to Skip to main content
15,881,852 members
Articles / Web Development / IIS
Tip/Trick

Setting up IIS with HTTPS Binding

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
7 Feb 2014CPOL2 min read 139K   16   1
Set HTTPS binding for web site

Introduction

Following are the steps to setup an IIS with HTTPS (Windows 7,Win 8):

  1. Go to Control panel -> select Uninstall a program
  2. In left panel of window select -> Turn Windows features on or off
  3. In the "Window Features" -> select "Internet Information Services"

    Image 1

  4. Select all checkboxes under the main menu
  5. Click on "OK"
  6. After installation process, restart the computer once (* required)
  7. Go to start menu-> type "inetmgr" in search box -> it will open the IIS window

    Confirm IIS is installed properly.

  8. Go to "Default Web Site" from left panel menus:

    Image 2

  9. Select Browse web site from Right panel
  10. You will see an IIS home page in web browser.

    Image 3

    How to Add HTTPS Binding

  11. Once you setup an IIS, the IIS will use default port 80 and the binding is HTTP.
  12. We can add multiple binding to IIS, HTTPS, TCP, MSMQ, FTP, etc
  13. To add HTTPS binding, first you need to create a certificate or you need to buy a certificate from VeriSign service providers.

    How to Generate Self Sign Certificate on IIS

  14. Open IIS -> Under "Connections", select root option, i.e., named with system name.
  15. Next window will show an available options, select "Server Certificate" under security tab
  16. After selecting "Server Certificates" in right panel under Actions, select "Create Self-Sign Certificate…"
  17. Specify a friendly name for the certificate, and click OK

    Image 4

  18. Now select "Default web site" from connections panel
  19. From right hand panel, under "Actions" select "Bindings…"

    Image 5

  20. Click on Add…
  21. From Type drop down list, select "https", the default port assigned in 443
  22. From SSL Certificate, select self signed certificate created and click on "OK"
  23. To test HTTPS binding, select "Default Web Site" and select "Browse *:443(https)" from right panel.
  24. The IIS home page will open in a web browser
  25. If you used a self signed certificate, you will get an certificate error in browser, to proceed, you need to accept certificate exception.
    If you have a self signed certificate, you will not see any certificate error, it will show IIS home page with HTTPS.

    HOW TO ADD https Binding for a Web Site

  26. Once you have set up IIS with HTTPS, you can add an HTTPS binding for a site
  27. If you have an HTML web site hosted under IIS, select the web site from Left side panel
  28. From the options available for your site, select "SSL Settings" from security tab
  29. Check the required SSL checkbox with appropriate client certificates options.
  30. To apply the settings, click on "Apply" from right panel
  31. Now browse your site home page, it will not work with http, need to use https *

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Neeyamo Enterprise Pvt Ltd, Pune
India India
Working on .Net technologies from last 4 years, WCF, C#, Silverlight etc. Recently I have developed a Mobile apps with Phone Gap technique.

Comments and Discussions

 
QuestionNow select "Default web site" from connections panel Pin
Raj Reddy (INDIA)28-Aug-17 0:17
Raj Reddy (INDIA)28-Aug-17 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.