Grafana connection with Elasticsearch basic auth fail Proxy request failed" err="x509: certificate signed by unknown authority"

Scenario

  • Grafana OSS 9.3.6
  • Connect datasource Elasticsearch 8.5.3
  • I’m usingn plugin Elastic. in grafana
  • Basic AUTH With credentials
  • Basic instalation of grafana oss with Ubuntu 20.04 repo.
  • Change sqlite to mysql

If used in configuration Disable Skip TLS Verify get the error below

logger=data-proxy-log userId=1 orgId=1 uname=abkrim path=/api/datasources/proxy/1/work_analyzers/_mapping remote_addr=1.1.1.1referer=https://coresitelight.mydomain.tld:3000/datasources/edit/H7oZHZI4z t=2023-02-01T07:15:47.951751569Z level=error msg="Proxy request failed" err="x509: certificate signed by unknown authority"
logger=context userId=1 orgId=1 uname=abkrim t=2023-02-01T07:15:47.954065735Z level=error msg="Request Completed" method=GET path=/api/datasources/proxy/1/work_analyzers/_mapping status=502 remote_addr=1.1.1.1time_ms=40 duration=40.683821ms size=0 referer=https://coresitelight.mydomain.tld:3000/datasources/edit/H7oZHZI4z handler=/api/datasources/proxy/:id/*

If activate Skip TLS Verify work fine data source.

Appreciate help