# Elasticsearch SSL Certificate Invalid

**URL:** <https://discuss.elastic.co/t/elasticsearch-ssl-certificate-invalid/244538>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 11, 2020, 11:32am UTC](https://discuss.elastic.co/t/elasticsearch-ssl-certificate-invalid/244538 "2020-08-11T11:32:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravananselvamohan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravananselvamohan/32/47407_2.png) [@saravananselvamohan](https://discuss.elastic.co/u/saravananselvamohan)\
**Post date:** [August 11, 2020, 11:32am UTC](https://discuss.elastic.co/t/elasticsearch-ssl-certificate-invalid/244538/1 "2020-08-11T11:32:45Z")

</div>

Software: Elastics v5.5.0  
Hardware: Ubuntu 20  
I am trying to set up SSL/TLS on the cluster.  
Steps I followed:

` bin/x-pack/certgen`

```auto
      Please enter the desired output file [/home/es/config/x-pack/csr-bundle.zip]:
    Enter instance name: node01
    Enter name for directories and files [node01]:
    Enter IP Addresses for instance (comma-separated if more than one) []: 127.0.0.1
    Enter DNS names for instance (comma-separated if more than one) []: localhost
    Would you like to specify another instance? Press 'y' to continue entering instance information:

```

Certificates got generated after these steps.

Elasticsearch.yml configuration:

```auto
xpack.ssl.certificate: /etc/elasticsearch/x-pack/certificate-bundle/node01/node01.crt
xpack.ssl.certificate_authorities: ["/etc/elasticsearch/x-pack/certificate-bundle/ca/ca.crt"]
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.enabled: true

```

After restarting the node, When I access the node [https://localhost:9200](https://localhost:9200) from Chrome  
I got NET::ERR\_CERT\_AUTHORITY\_INVALID in the browser.

The browser still gives me warning the connection is insecure. Do I miss something?

---

<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:** [September 8, 2020, 11:32am UTC](https://discuss.elastic.co/t/elasticsearch-ssl-certificate-invalid/244538/2 "2020-09-08T11:32:51Z")

</div>

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