thinkphp6 用 elasticsearch-php 操作es8的问题?

$client = ClientBuilder::create()
    ->setHosts(['https://192.17.169.72:9200'])
    ->setBasicAuthentication('elastic', 'password copied during Elasticsearch start')
    ->setCABundle('/xx/http.p12')  
    ->build();

按官方代码,执行任何操作时,出现以下错误
cURL error 77 (see https://curl.haxx.se/libcurl/...) for https://elastic:376_7786sX0E-...

请求大佬指点

阅读 2k
1 个回答

CURL error 77 应该是个SSL错误吧, 检查一下CA证书

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题