# Kibana is not connecting to Elasticsearch when providing own Certificate

**URL:** https://discuss.elastic.co/t/kibana-is-not-connecting-to-elasticsearch-when-providing-own-certificate/351763
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [January 25, 2024, 3:12am UTC](https://discuss.elastic.co/t/kibana-is-not-connecting-to-elasticsearch-when-providing-own-certificate/351763 "2024-01-25T03:12:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![avrix121](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@avrix121](https://discuss.elastic.co/u/avrix121)
#### Post date: [January 25, 2024, 3:12am UTC](https://discuss.elastic.co/t/kibana-is-not-connecting-to-elasticsearch-when-providing-own-certificate/351763/1 "2024-01-25T03:12:27Z")

</div>

Hi Team,

I have deployed ECK 2.11 on AWS EKS.  
I have used elastic and kibana resource files as given in official quickstart documentation. I am exposing Kibana and elasticsearch externally using domain names and have created certificate using well known CA.

Below are yml's of elasticsearch and Kibana.

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
  labels:
    app: elastic
spec:
  version: 8.12.0
  http:
    tls:
      certificate:
        secretName: my-cert
  monitoring:
    metrics:
      elasticsearchRefs:
      - name: elasticsearch
    logs:
      elasticsearchRefs:
      - name: elasticsearch
  nodeSets:
  - name: default
    count: 3
    config:
      node.store.allow_mmap: false
      xpack.security.audit.enabled: false
      node.store.allow_mmap: false
    podTemplate:
      spec:
        initContainers:
        - name: sysctl
          securityContext:
            privileged: true
            runAsUser: 0
          command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
        volumes:
        - name: elasticsearch-data
          emptyDir: {}

```

```auto
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
  labels:
    app: kibana
spec:
  version: 8.12.0
  http:
    tls:
      certificate:
        secretName: my-cert
      selfSignedCertificate:
        disabled: true
  count: 3
  elasticsearchRef:
    name: quickstart

```

I am able to access elasticsearch on external domain name.  
But for Kibana I get this error:

```auto
Unable to retrive version Informaion from Elasticsearch, unable to verify the first certificate

```

This is a POC and will be impacting our delivery and the option of going with Elastic Licence or not?

---

<div class="post-metadata">

### Author: ![avrix121](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@avrix121](https://discuss.elastic.co/u/avrix121)
#### Post date: [January 25, 2024, 7:32am UTC](https://discuss.elastic.co/t/kibana-is-not-connecting-to-elasticsearch-when-providing-own-certificate/351763/2 "2024-01-25T07:32:23Z")

</div>

@Vineeth_varma were you able to make it work in your cluster?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 22, 2024, 7:32am UTC](https://discuss.elastic.co/t/kibana-is-not-connecting-to-elasticsearch-when-providing-own-certificate/351763/3 "2024-02-22T07:32:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
