# Refusing to connect to Elasticsearch-Node with expired certificate

**URL:** <https://discuss.elastic.co/t/refusing-to-connect-to-elasticsearch-node-with-expired-certificate/250820>\
**Category:** Elastic Search\
**Created:** [October 2, 2020, 4:32pm UTC](https://discuss.elastic.co/t/refusing-to-connect-to-elasticsearch-node-with-expired-certificate/250820 "2020-10-02T16:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [October 2, 2020, 4:32pm UTC](https://discuss.elastic.co/t/refusing-to-connect-to-elasticsearch-node-with-expired-certificate/250820/1 "2020-10-02T16:32:01Z")

</div>

`Error: Enterprise Search is unable to connect to Elasticsearch. Ensure a healthy Elasticsearch cluster is running at https://127.0.0.1:9200 for user elastic.`

But I can confirm that everything is fine:

> [root@v220191183186100843 ~]# curl -k [https://127.0.0.1:9200](https://127.0.0.1:9200) -u elastic  
> Enter host password for user 'elastic':  
> {  
> "name" : "v220191183186100843",  
> "cluster\_name" : "Das Asoziale Netzwerk",  
> "cluster\_uuid" : "6P8H\_FsPQ2Kz6pzqWlj4EA",  
> "version" : {  
> "number" : "7.9.2",  
> "build\_flavor" : "default",  
> "build\_type" : "rpm",  
> "build\_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e",  
> "build\_date" : "2020-09-23T00:45:33.626720Z",  
> "build\_snapshot" : false,  
> "lucene\_version" : "8.6.2",  
> "minimum\_wire\_compatibility\_version" : "6.8.0",  
> "minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
> },  
> "tagline" : "You Know, for Search"  
> }

It worked before.  
The only thing that changed, was my certificate expiring, but it wasn't ever valid for `127.0.0.1` in the first place...

---

<div class="post-metadata">

**Author:** ![Guerteltier](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@Guerteltier](https://discuss.elastic.co/u/Guerteltier)\
**Post date:** [October 4, 2020, 4:00pm UTC](https://discuss.elastic.co/t/refusing-to-connect-to-elasticsearch-node-with-expired-certificate/250820/2 "2020-10-04T16:00:01Z")

</div>

My config:

```
elasticsearch.host: https://127.0.0.1:9200
elasticsearch.username: elastic
elasticsearch.password: REDACTED
elasticsearch.ssl.enabled: true
elasticsearch.ssl.verify: false
```

---

<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:** [November 4, 2022, 8:14am UTC](https://discuss.elastic.co/t/refusing-to-connect-to-elasticsearch-node-with-expired-certificate/250820/3 "2022-11-04T08:14:35Z")

</div>


