Gravatar for jeychandran@live.com

Question by jeyachandran, Sep 28, 2015 2:47 PM

Client certificate was not sent to the server.

Hi,

In my site Coveo index got corrupted so deleted the old CES7 folder and login to Coveo Admin service page to create CES7 folder and rebuild the index, everything went successful. When I try to hit the Coveo rest url to search any keyword(http://localhost:8080/coveo/rest/?q=search), it throwing below error.

Client certificate was not sent to the server. This is usually caused by a client certificate not trusted by server. Either provide a trusted client certificate or don't use any client certificate.

What I needs to do for resolve this error? Can anyone please help?

Thanks and Regards Jeyachandran

2 Replies
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Sep 28, 2015 3:33 PM

Hi Jeyachandran,

When you setup your Coveo Search API, you probably copied the original CES index certificates over to the Coveo Search API server. You need to do that copy again because you have a new index with new index certificates. The old index certificates cannot be used to query the new CES index.

  1. Open the Coveo Search API config.yml file to find where the Coveo Search API is reading its certificates.
  2. Copy the new CES index certificates to that location, overriding the old index certificates with the new ones.
  3. Access your Coveo Search API REST endpoint URL to confirm everything works (default is http://localhost:8080/rest/search ).
Gravatar for jeychandran@live.com

Comment by jeyachandran, Sep 29, 2015 1:18 PM

Hi Jean-François

Thanks for the response. I understood the problem but i didn't get where i need to make changes because we didn't used Coveo Search API instead we used Coveo by .Net front end with Sitecore integration.

Can you please give solution for this kind of approach?

Gravatar for rquirion@coveo.com

Answer by ronald, Oct 5, 2015 2:28 PM

Hi Jeyachandran,

The certificate used by the Coveo .NET Front-End for connecting to the Coveo index is usually configured using the .NET Front-End First Time Setup page: https://onlinehelp.coveo.com/en/ces/7.0/administrator/coveonetfront-endfirsttime_setup.htm

Since you are using the Coveo Search API, I don't know if you also have a .NET UI integrated to your Sitecore. If so, you can usually open the First-Time Setup page by clicking on the Configure Front-End item in the Do more menu. Otherwise, you will probably have to manually type the address in the browser address bar. It should look something like this: http://yoursitecorewebsite/Coveo/FirstTimeSetup/default.aspx

If the First Time Setup page cannot be loaded, in theory, it should be possible to manually copy the certificate .p12 file from the index directory (C:\CES7\Config\Certificates) to a directory accessible to your Sitecore web site, to open your Sitecore's web.config file in a text editor, and to make the sslCertificatePath attribute on the server line of the coveoEnterpriseSearch section pointing on the new certificate file.

Ask a question