# How to set friendly name of ca certificate generated by elasticsearch-certutil tool

**URL:** <https://discuss.elastic.co/t/how-to-set-friendly-name-of-ca-certificate-generated-by-elasticsearch-certutil-tool/169660>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 23, 2019, 12:28pm UTC](https://discuss.elastic.co/t/how-to-set-friendly-name-of-ca-certificate-generated-by-elasticsearch-certutil-tool/169660 "2019-02-23T12:28:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adun](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@adun](https://discuss.elastic.co/u/adun)\
**Post date:** [February 23, 2019, 12:28pm UTC](https://discuss.elastic.co/t/how-to-set-friendly-name-of-ca-certificate-generated-by-elasticsearch-certutil-tool/169660/1 "2019-02-23T12:28:19Z")

</div>

Hi, I'm trying to enable ssl for elasticsearch 6.6.1.  
With --ca-dn parameter, I can specify the dn info.  
While I don't see a way to specify the friendly name for the ca certificate in ca mode.

e.g.  
// ./elasticsearch-certutil ca --ca-dn "CN=CA1" --out "ca-1.p12"  
In cert mode, I can specify the cert friendly with the --name parameter, not for the ca mode.  
e.g.  
// ./elasticsearch-certutil cert --name "Cert 1 From CA 1" --ca "ca-1.p12" --out "cert-1.p12"

Thank you.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 28, 2019, 11:20am UTC](https://discuss.elastic.co/t/how-to-set-friendly-name-of-ca-certificate-generated-by-elasticsearch-certutil-tool/169660/2 "2019-02-28T11:20:41Z")

</div>

Hi

What do you mean by "friendly name" ? If this is just the filename, you can

- If you use `--pem` then you can't specify the name of the CA certificate, it will be `ca.crt` . But you can always rename if afterwards.
- If you don't use `--pem` then you can set `--out` to specify the name of the `.p12` file

---

<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:** [March 28, 2019, 11:20am UTC](https://discuss.elastic.co/t/how-to-set-friendly-name-of-ca-certificate-generated-by-elasticsearch-certutil-tool/169660/3 "2019-03-28T11:20:42Z")

</div>

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