Click here to Skip to main content
Click here to Skip to main content

Tagged as

Go to top

Setting up IIS with HTTPS Binding

, 7 Feb 2014
Rate this:
Please Sign up or sign in to vote.
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"

  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:

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

    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

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

  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)

Share

About the Author

Avinash6474
Software Developer (Junior) BrighTex Bio Photonics, Hyderabad
India India
I am from Kolhapur, Maharashtra. I am working on .Net technologies from last 4 years.I am working on WCF, C#, Silverlight etc. Recently I have developed a Mobile apps with Phone Gap technique.

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 8 Feb 2014
Article Copyright 2014 by Avinash6474
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid