# Question in using elasticsearch-certutil to generate cert

**URL:** <https://discuss.elastic.co/t/question-in-using-elasticsearch-certutil-to-generate-cert/240433>\
**Category:** Logstash\
**Created:** [July 8, 2020, 9:46pm UTC](https://discuss.elastic.co/t/question-in-using-elasticsearch-certutil-to-generate-cert/240433 "2020-07-08T21:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![azteker](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@azteker](https://discuss.elastic.co/u/azteker)\
**Post date:** [July 8, 2020, 9:46pm UTC](https://discuss.elastic.co/t/question-in-using-elasticsearch-certutil-to-generate-cert/240433/1 "2020-07-08T21:46:04Z")

</div>

I have generated elastic-stack-ca.p12

Then I use this command to generate crt and key files for logstash.

`./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12 --name logstash --dns [?] --ip [elk server's ip] --pem --out logstash.zip`  
I don't set any dns for my elk server, what does the param `--dns` should be? I was told this param is mandatory.

---

<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:** [August 5, 2020, 9:46pm UTC](https://discuss.elastic.co/t/question-in-using-elasticsearch-certutil-to-generate-cert/240433/2 "2020-08-05T21:46:14Z")

</div>

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