WARNING: THIS ARTICLE MAY BE (IS) OUT OF DATE, PLEASE CHECK WITH THENU OR ERIK FOR THE LATEST INSUTRCTION


To make ClickHome3 website working on both HTTP and HTTPS protocols following actions are required:

1. Install ClickHome3 using ClickHome Configurator as usual without https checkbox ticked.

2. Open web.config in webapp folder.

3. Add https endpoint configuration to each service section. Just copy and paste http endpoint node and then rename HttpDataServiceBinding to HttpsDataServiceBinding.


Example:


<service name="ClickHome.Infrastucture.Services.TenderService" behaviorConfiguration="HttpDataServiceBehavior">
        <endpoint address="" binding="customBinding" bindingConfiguration="HttpDataServiceBinding" contract="ClickHome.DomainModel.Services.ITenderService" bindingNamespace="http://schemas.clickhome.com.au/clickhome3/v1" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>

<service name="ClickHome.Infrastucture.Services.TenderService" behaviorConfiguration="HttpDataServiceBehavior">
       
<endpoint address="" binding="customBinding" bindingConfiguration="HttpDataServiceBinding" contract="ClickHome.DomainModel.Services.ITenderService" bindingNamespace="http://schemas.clickhome.com.au/clickhome3/v1" />
       
<endpoint address="" binding="customBinding" bindingConfiguration="HttpsDataServiceBinding" contract="ClickHome.DomainModel.Services.ITenderService" bindingNamespace="http://schemas.clickhome.com.au/clickhome3/v1" />
       
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
     
</service>

4.Repeat Step 3 for all the Windows Communication Foundation (WCF) services

5. Add https binding in IIS settings under the website node as in usual case with https. So website should have both http and https bindings.

6. Restart website

7. If you have trouble navigating to few screens and you see errors, verify if you have added https endpoint configuration to all the services in web.config.

 

Web services will get a protocol configuration from the main URL. So if ClickHome3 website was loaded under http - everything is http, if ClickHome3 was opened under https - all services work with https.