Client certificate was not sent to the server.
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
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.
- Open the Coveo Search API
config.ymlfile to find where the Coveo Search API is reading its certificates.
- Copy the new CES index certificates to that location, overriding the old index certificates with the new ones.
- Access your Coveo Search API REST endpoint URL to confirm everything works (default is http://localhost:8080/rest/search ).
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.