Configure HTTP over IIS in VB.NET

In this article, you will learn about how to create certificate and configure HTTP over IIS to expose WCF REST Services over HTTPS.
  • 2290
Introduction: Configure HTTP over IIS.

This artical is all about how to configure HTTP over IIS to expose the WCF REST Services over HTTP.

There are three steps used for exposing a WCF REST Services over HTTP:-

Step 1: Create Certificate

There are two ways of creating certificates:-
  • Create your own certificate.
  • Use a 3rd party provided certificate.

Here, I am creating my own certifricate. To create a certificate, Open 'inetmgr' in Run dialog box:
ex1.gif 

In the center,you will see an option of Server Certificates.Double click on that.

ex2.gif 

Now, see in the left, there will a option of 'Create Self Signed Certificate......' click on it.
A dialog box will appear, specify the friendly name as you desire:
Step 2: Configure HTTPS in IIS
The next step is to configure SSL in IIS.For this purpose follow the step below:
  1. Open IIS.
  2. Right click on Sites folder.
  3. Select Default Web Site. 
ex3.gif

Select SSL Settings from the Default Web Site Home as shown in the figure:

ex4.gif

Click on Binding option of Edit Site in the left pane as shown in the figure as below:


ex5.gif

Now, a dialog box will appear. Click on ADD button to add a Binding for HTTPS.

ex6.gif

Select HTTPS from dropdown list:

ex7.gif

Now we need to select a SSL Cerificate from drop down list and select the name which you specifies previously:

ex8.gif

HTTP is configured as below:

 ex9.gif

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.