# Failure to update x-pack license

**URL:** https://discuss.elastic.co/t/failure-to-update-x-pack-license/112275
**Category:** Elasticsearch
**Created:** [December 18, 2017, 4:29pm UTC](https://discuss.elastic.co/t/failure-to-update-x-pack-license/112275 "2017-12-18T16:29:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alepuccetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alepuccetti/32/20174_2.png) [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)
#### Post date: [December 18, 2017, 4:29pm UTC](https://discuss.elastic.co/t/failure-to-update-x-pack-license/112275/1 "2017-12-18T16:29:26Z")

</div>

Hi everyone,

I tried to update my license form trial to my platinum one. I was able to update the license on my production ES5.6 cluster, but I want to run some test on ES6.0 and when I try to upload the license I get this error:

```
{"error":{"root_cause":[{"type":"illegal_state_exception","reason":"Can not upgrade to a production license unless TLS is configured or security is disabled"}],"type":"illegal_state_exception","reason":"Can not upgrade to a production license unless TLS is configured or security is disabled"},"status":500}

```

I followed the official documentation [https://www.elastic.co/guide/en/x-pack/6.0/installing-license.html](https://www.elastic.co/guide/en/x-pack/6.0/installing-license.html).

Can anyone shed some light on this error?

Cheers,

---

<div class="post-metadata">

### Author: ![alepuccetti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alepuccetti/32/20174_2.png) [@alepuccetti](https://discuss.elastic.co/u/alepuccetti)
#### Post date: [December 19, 2017, 9:04pm UTC](https://discuss.elastic.co/t/failure-to-update-x-pack-license/112275/2 "2017-12-19T21:04:13Z")

</div>

By setting up

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

```

you can update the license

---

<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 16, 2018, 9:04pm UTC](https://discuss.elastic.co/t/failure-to-update-x-pack-license/112275/3 "2018-01-16T21:04:25Z")

</div>

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