# Error while starting elasticsearch xpack.security.enabled=true

**URL:** https://discuss.elastic.co/t/error-while-starting-elasticsearch-xpack-security-enabled-true/235214
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [June 1, 2020, 5:59pm UTC](https://discuss.elastic.co/t/error-while-starting-elasticsearch-xpack-security-enabled-true/235214 "2020-06-01T17:59:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DZ1](https://avatars.discourse-cdn.com/v4/letter/d/b487fb/32.png) [@DZ1](https://discuss.elastic.co/u/DZ1)
#### Post date: [June 1, 2020, 5:59pm UTC](https://discuss.elastic.co/t/error-while-starting-elasticsearch-xpack-security-enabled-true/235214/1 "2020-06-01T17:59:34Z")

</div>

In my scenario I have started elasticsearch 7.2 first and stopped it and added following property:

```auto
xpack.license.self_generated.type: trial
xpack.monitoring.collection.enabled: true

```

And restarted elasticsearch then it gives me this error:

> ERROR: [1] bootstrap checks failed  
> [1]: Transport SSL must be enabled if security is enabled on a [basic] license. Please set [xpack.security.transport.ssl.enabled] to [true] or disable security by setting [xpack.security.enabled] to [false]

As per documentation it should start when xpack.security.enabled is true and xpack.license.self\_generated.type is trial.

Is this problem with bootstrapping?

---

<div class="post-metadata">

### Author: ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)
#### Post date: [June 2, 2020, 4:05am UTC](https://discuss.elastic.co/t/error-while-starting-elasticsearch-xpack-security-enabled-true/235214/2 "2020-06-02T04:05:06Z")

</div>

Hi you can enable the below mentioned settings in order to solve your issue.

> xpack.security.enabled: true  
> xpack.security.transport.ssl.enabled: true

---

<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: [June 2, 2020, 6:11am UTC](https://discuss.elastic.co/t/error-while-starting-elasticsearch-xpack-security-enabled-true/235214/3 "2020-06-02T06:11:13Z")

</div>

You are not _actually_ running with a trial license. `xpack.license.self_generated.type` takes effect _only_ if you add it in your configuration before the first time you run elasticsearch. Otherwise, it will start and self-generate a _basic_ license, which is what happened in your case. You can still start a trial if you want to, but you have to use the [start trial API](https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trial.html)

---

<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: [June 30, 2020, 6:11am UTC](https://discuss.elastic.co/t/error-while-starting-elasticsearch-xpack-security-enabled-true/235214/4 "2020-06-30T06:11:21Z")

</div>

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