November Happy Hour will be moved to Thursday December 5th.

EPiserver Find using SSL

Vote:
 

Hi,

Im using Episerver Find and it was all working until I added an SSL to my site - now, of course, the site is using https and the Indexing service has failed to connect to remote server and the Find controls do not work either on the front end.

Im using Episerver CMS 6 R2.

Is there a work around for this?

 

Thanks

Jonathan

#66293
Feb 26, 2013 15:05
Vote:
 

Hi,

Could you clarify what you mean by "Find controls"? 

Did you add SSL to the public facing website or are you using SSL to communicate with Find's REST API?

#66295
Feb 26, 2013 15:16
Vote:
 

Hi,

Sorry, I have created my own Search area that uses FIND facets etc.

This was all working until I add an SSL to the IIS. In the config file I have the original settings -

 <episerver.find
        serviceUrl="http://es-api01.episerver.com/<MYKEY>/"
        defaultIndex="<MYNAME"/>

Should I make this https?

 

The FIND > INDEX in the CMS says this error:

WebException: Unable to connect to the remote server

at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at EPiServer.Find.Connection.JsonRequest.WriteBody(String body) at EPiServer.Find.Api.SearchCommand`1.Execute() at EPiServer.Find.Client.Search[TSource](SearchRequestBody requestBody, Action`1 commandAction) at EPiServer.Find.Framework.UI.Controllers.IndexOverviewController.Index() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.b__a() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

 

Hope this helps,

Jon

 

#66298
Feb 26, 2013 15:29
Vote:
 

If your index/key supports SSL (I don't think developer indexes do out-of-the-box) it may be a good idea to give that a try. Seems kind of strange though that you wanting SSL for visitors making requests TO the web server get problems with requests FROM the web server. That may be a configuration issue in IIS, unfortunately I have no clue about that. Hopefully some EPiServer folks can provide more help :)

#66302
Feb 26, 2013 15:49
Vote:
 

Hi,

Thanks for your help.

I dont want want to do an SSL call for visitors - I mention SSL as the problem as it only happened after the SSL was installed but it maybe a different issue.

Does the web exception above point to anything else that may help us?

 

#66303
Feb 26, 2013 15:52
Vote:
 

Well, Find's .NET API simple makes HttpWebRequests to Find's REST API so I can't really see whey an SSL certificate installed on the site would cause issues with that. On the other hand I wouldn't be surprised if there's some security setting somewhere that requires all external calls to be made over SSL as well unless configuration tells it not to. Or, it may be the other way around, that the web server thinks that it should include the certificate in outgoing request.

You could try and write a couple of lines of code that makes a http request to your URL/index and inspect the inner exception if an exception occurs there as well. 

According to Google there's quite a few possible causes and solutions, see for instance resolution B and C here.

#66304
Feb 26, 2013 16:05
Vote:
 

Great! thanks.

It's an odd one, FIND pulls in a different set of results under HTTPS than that using HTTP. HTTPS brings in a lot less results.

#66746
Mar 08, 2013 10:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.