# "bin/elasticsearch-certutil ca" not working

**URL:** https://discuss.elastic.co/t/bin-elasticsearch-certutil-ca-not-working/229436
**Category:** Elasticsearch
**Created:** [April 23, 2020, 10:18am UTC](https://discuss.elastic.co/t/bin-elasticsearch-certutil-ca-not-working/229436 "2020-04-23T10:18:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![varom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varom/32/47522_2.png) [@varom](https://discuss.elastic.co/u/varom)
#### Post date: [April 23, 2020, 10:18am UTC](https://discuss.elastic.co/t/bin-elasticsearch-certutil-ca-not-working/229436/1 "2020-04-23T10:18:15Z")

</div>

I am getting following error :  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/1/71e42fddb5b79e479a4a8e001cbdfa6875cc4307.png)

same for:  
bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12

I'm just beginner in ES and i want to setup TSL communication in cluster based on:  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.5/configuring-tls.html#node-certificates](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/configuring-tls.html#node-certificates)  
, however can't generate certificate using above commands.

I'm executing it from: /opt/apps/elasticsearch/6.5.1/elasticsearch-6.5.1/bin$  
and the script is there: ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c014c0eeeae6a15a8c83711905d80c2059a85f6c.png)  
ES is version 6.5.1

Of course i was googling the issue, but could not find any solution.  
Thx for any help.

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [April 23, 2020, 1:53pm UTC](https://discuss.elastic.co/t/bin-elasticsearch-certutil-ca-not-working/229436/2 "2020-04-23T13:53:42Z")

</div>

You need execute the command in the parent folder of `bin`, i.e. in your case, it should be ` /opt/apps/elasticsearch/6.5.1/elasticsearch-6.5.1`.

---

<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: [May 21, 2020, 1:53pm UTC](https://discuss.elastic.co/t/bin-elasticsearch-certutil-ca-not-working/229436/3 "2020-05-21T13:53:47Z")

</div>

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