# ElasticSeach SSL Signed overrun error

**URL:** https://discuss.elastic.co/t/elasticseach-ssl-signed-overrun-error/293071
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [December 28, 2021, 9:45pm UTC](https://discuss.elastic.co/t/elasticseach-ssl-signed-overrun-error/293071 "2021-12-28T21:45:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![a09hopper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a09hopper/32/95351_2.png) [@a09hopper](https://discuss.elastic.co/u/a09hopper)
#### Post date: [December 28, 2021, 9:45pm UTC](https://discuss.elastic.co/t/elasticseach-ssl-signed-overrun-error/293071/1 "2021-12-28T21:45:21Z")

</div>

Searching around I have not seen anyone run into this error.

I am using Elasticsearch 7.16.2 with a Windows CA, I request a CSR and then sign it with the Windows web enrolment under the web server setting, the following error follows:

```auto
[2021-12-28T21:40:35,360][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.ssl]]; nested: ElasticsearchException[failed to create trust manager]; nested: ElasticsearchException[failed to initialize a TrustManagerFactory]; nested: CertificateParsingException[signed overrun, bytes = 917];
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[elasticsearch-7.16.2.jar:7.16.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[elasticsearch-7.16.2.jar:7.16.2]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[elasticsearch-7.16.2.jar:7.16.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[elasticsearch-cli-7.16.2.jar:7.16.2]
        at org.elasticsearch.cli.Command.main(Command.java:77) ~[elasticsearch-cli-7.16.2.jar:7.16.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) ~[elasticsearch-7.16.2.jar:7.16.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[elasticsearch-7.16.2.jar:7.16.2]
Caused by: org.elasticsearch.ElasticsearchSecurityException: failed to load SSL configuration [xpack.security.transport.ssl]

```

Elasticsearch.yml config

```auto
node.name: node-1
network.host: ['192.168.1.210','elastic.lab.local']
cluster.initial_master_nodes: ["node-1"]
# Transport layer
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.key: C:\\Users\\Administrator\\Desktop\\elasticsearch-7.16.2\\config\\certs\\elastic.cer
xpack.security.transport.ssl.certificate: C:\\Users\\Administrator\\Desktop\\elasticsearch-7.16.2\\config\\certs\\elastic.key

# HTTP layer
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.verification_mode: certificate
xpack.security.http.ssl.key: C:\\Users\\Administrator\\Desktop\\elasticsearch-7.16.2\\config\\certs\\elastic.cer
xpack.security.http.ssl.certificate: C:\\Users\\Administrator\\Desktop\\elasticsearch-7.16.2\\config\\certs\\elastic.key

```

Any help would be appreciated

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [December 28, 2021, 10:29pm UTC](https://discuss.elastic.co/t/elasticseach-ssl-signed-overrun-error/293071/2 "2021-12-28T22:29:54Z")

</div>

You've got your certificate and key files switched

> [@a09hopper](#):
>
> ```auto
> ...transport.ssl.key: ... certs\\elastic.cer
> ...transport.ssl.certificate: ... certs\\elastic.key
> ...http.ssl.key: ... certs\\elastic.cer
> ...http.ssl.certificate: ... certs\\elastic.key
> 
> ```

---

<div class="post-metadata">

### Author: ![a09hopper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a09hopper/32/95351_2.png) [@a09hopper](https://discuss.elastic.co/u/a09hopper)
#### Post date: [December 28, 2021, 10:39pm UTC](https://discuss.elastic.co/t/elasticseach-ssl-signed-overrun-error/293071/3 "2021-12-28T22:39:31Z")

</div>

That will be why I could not find other people having this issue 🙂 Many thanks for pointing this out! That sorted the issue

---

<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: [January 25, 2022, 10:40pm UTC](https://discuss.elastic.co/t/elasticseach-ssl-signed-overrun-error/293071/4 "2022-01-25T22:40:04Z")

</div>

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