# ES 7.5.1 exception while generating certificates

**URL:** https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [January 15, 2020, 6:11pm UTC](https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186 "2020-01-15T18:11:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AHS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahs/32/60850_2.png) [@AHS](https://discuss.elastic.co/u/AHS)
#### Post date: [January 15, 2020, 6:11pm UTC](https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186/1 "2020-01-15T18:11:57Z")

</div>

Hello,

I am following this guide in order to get SSL installed:

> **[Configuring SSL, TLS, and HTTPS to secure Elasticsearch, Kibana, Beats, and...](https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash)**
>
> Feeling insecure about your Elastic Stack security? Run through these step-by-step instructions for setting up TLS encryption and https on Elasticsearch, Kibana, Logstash, and Beats to shore up your stack's defenses. Highly recommended for end-to-end...

When I reach to point 2-4 and run the following command:  
bin/elasticsearch-certutil cert ca --pem --in ~/tmp/cert\_blog/instance.yml --out ~/tmp/cert\_blog/certs.zip

I get the following exception:

```
Exception in thread "main" org.elasticsearch.common.xcontent.XContentParseException: [1:1] [certgen] unknown field [nstances], parser not found
        at org.elasticsearch.common.xcontent.ObjectParser.lambda$errorOnUnknown$2(ObjectParser.java:93)
        at org.elasticsearch.common.xcontent.ObjectParser.parse(ObjectParser.java:235)
        at org.elasticsearch.xpack.security.cli.CertificateTool.parseFile(CertificateTool.java:919)
        at org.elasticsearch.xpack.security.cli.CertificateTool.parseAndValidateFile(CertificateTool.java:888)
        at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.getCertificateInformationList(CertificateTool.java:399)
        at org.elasticsearch.xpack.security.cli.CertificateTool$GenerateCertificateCommand.execute(CertificateTool.java:685)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.xpack.security.cli.CertificateTool.main(CertificateTool.java:137)

```

Can anybody help please?  
Thanks

---

<div class="post-metadata">

### Author: ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)
#### Post date: [January 15, 2020, 6:13pm UTC](https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186/2 "2020-01-15T18:13:00Z")

</div>

HI, welecome

Can you provide your instance.yml file please ?

PS : you can use markdown language to format logs it makes it easier to read use ```

---

<div class="post-metadata">

### Author: ![AHS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahs/32/60850_2.png) [@AHS](https://discuss.elastic.co/u/AHS)
#### Post date: [January 15, 2020, 6:17pm UTC](https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186/3 "2020-01-15T18:17:37Z")

</div>

I am so sorry, there was a typo in instances.yml... My apologies!

---

<div class="post-metadata">

### Author: ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)
#### Post date: [January 15, 2020, 6:18pm UTC](https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186/4 "2020-01-15T18:18:27Z")

</div>

Yes you missed the "i" that's what i thought

---

<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: [February 12, 2020, 6:18pm UTC](https://discuss.elastic.co/t/es-7-5-1-exception-while-generating-certificates/215186/5 "2020-02-12T18:18:27Z")

</div>

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