EPiServer Indexing Service Stops Indexing with SSL

We were having problems with EPiServer 7 indexing service because it suddenly stops indexing content without any error message. Global search work perfectly but search results didn't update. Error log told us "There was no channel actively listening at 'https://www.example.com/IndexingService/IndexingService.svc/namedindexes/?accesskey={accessKey}'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening". Error message was accurate because we switched the backend side from HTTP to HTTPS protocol and EPiServer is clearly trying to use the same protocol with indexing service as the backend is using. Even though web.config defines service url withouth https.

Solution is simple but not bullet proof

Add security specifications (necessary for using SSL) in web.config file in the WCF service binding description:
<webHttpBinding>
  <binding name="IndexingServiceCustomBinding" ...>
    <security mode="Transport">
      <transport clientCredentialType="None"></transport>
    </security>
    <readerQuotas maxStringContentLength="10000000" />
  </binding>
</webHttpBinding>
This fix the problem but now the indexing service has to use SSL. This is tested only with EPiServer CMS 7 (with patch 1) There's also another issue EPiServer 7 with SSL what you should be aware: /2013/02/10/episerver-7-admin-language-settings-disabled-https/
We were having problems with EPiServer 7 indexing service because it suddenly stops indexing content…