# Copy as cURL is gray out

**URL:** <https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028>\
**Category:** Kibana\
**Created:** [October 18, 2021, 8:39pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028 "2021-10-18T20:39:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 18, 2021, 8:39pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/1 "2021-10-18T20:39:13Z")

</div>

I upgraded to 7.15 and I can't use copy as cURL in kabana

How do I get that back.. using Google chrome as browser if it helps

It was working fine on 7.12

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [October 19, 2021, 6:14am UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/2 "2021-10-19T06:14:54Z")

</div>

This usually happens in non-secure contexts (e.g. if there is no https connection). Can you check that you are have a secure connection?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 19, 2021, 1:17pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/3 "2021-10-19T13:17:39Z")

</div>

I don't use secure connection. when did it got change? it worked in 7.12. must be after that. whyyyy?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 19, 2021, 1:23pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/4 "2021-10-19T13:23:56Z")

</div>

I think that it changed on 7.13 according to the [release notes](https://www.elastic.co/guide/en/kibana/7.x/enhancements-and-bug-fixes-v7.13.0.html).

This is the [change](https://github.com/elastic/kibana/pull/97968), Copy as Curl now uses the browser Clipboard API which only works on secured sites.

From the github tags it was also backported to `7.12.2`, so `7.12.1` should be the last version where you can use copy as curl without https.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 19, 2021, 1:28pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/5 "2021-10-19T13:28:48Z")

</div>

ohh man. ok. I guess nothing I can do. that was very very useful tool.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 19, 2021, 1:34pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/6 "2021-10-19T13:34:00Z")

</div>

> [@elasticforme](#):
>
> I guess nothing I can do.

You just need to use a SSL certificate in Kibana to use it with HTTPS and the feature will work again.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 19, 2021, 1:42pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/7 "2021-10-19T13:42:43Z")

</div>

yes but that means I have to secure all my other traffic and lot more it is not as simple as putting ssl in to kibana.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 19, 2021, 2:10pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/8 "2021-10-19T14:10:55Z")

</div>

It really depends, if you are using unsecured communications in your cluster and between Elasticsearch and kibana, you can secure the communication between kibana and your browser without changing the other communications, it is a different setting.

You can have an unsecured cluster and use Kibana with HTTPS if you want.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 19, 2021, 2:48pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/9 "2021-10-19T14:48:07Z")

</div>

ohhh I didn't know that.

ok I use basic authentication for Elasticsearch, space and stuff. has created p12 certificate.

but if I can use only https from kibana then it is prefect. can you point me to some setup document on how do I do it?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 19, 2021, 3:13pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/10 "2021-10-19T15:13:14Z")

</div>

You can read this part of [the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/security-basic-setup-https.html#encrypt-kibana-browser).

It explain how to secure communications between Kibana and the browser.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 19, 2021, 7:18pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/11 "2021-10-19T19:18:39Z")

</div>

ok. I follow that documentation

created .key and .csr  
send that .csr to internal CA for signing. they send me file with .cer

here is my config looks like

# https setup test

server.ssl.enable: true  
server.ssl.certificate: /etc/kibana/config/certnew.cer  
server.ssl.key: /etc/kibana/config/houelkdev01.key

and here are the erros

```auto
[2021-10-19T14:10:31.540-05:00][FATAL][root] Error: [config validation of [server].ssl.enable]: definition for this key is missing
    at ObjectType.validate (/usr/share/kibana/node_modules/@kbn/config-schema/target_node/types/type.js:88:13)
    at ConfigService.validateAtPath (/usr/share/kibana/node_modules/@kbn/config/target_node/config_service.js:232:19)
    at MapSubscriber.project (/usr/share/kibana/node_modules/@kbn/config/target_node/config_service.js:240:169)
    at MapSubscriber._next (/usr/share/kibana/node_modules/rxjs/internal/operators/map.js:49:35)
    at MapSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
    at DistinctUntilChangedSubscriber._next (/usr/share/kibana/node_modules/rxjs/internal/operators/distinctUntilChanged.js:69:30)
    at DistinctUntilChangedSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
    at MapSubscriber._next (/usr/share/kibana/node_modules/rxjs/internal/operators/map.js:55:26)
    at MapSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
    at ReplaySubject._subscribe (/usr/share/kibana/node_modules/rxjs/internal/ReplaySubject.js:80:28)

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 19, 2021, 7:59pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/12 "2021-10-19T19:59:04Z")

</div>

> [@elasticforme](#):
>
> `Error: [config validation of [server].ssl.enable]: definition for this key is missing`

This is wrong, it is `server.ssl.enabled` not `server.ssl.enable`.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [October 19, 2021, 8:28pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/13 "2021-10-19T20:28:09Z")

</div>

I can't say enough Thank you Leandro. 🙏 🙏 🙏

---

<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:** [November 16, 2021, 8:29pm UTC](https://discuss.elastic.co/t/copy-as-curl-is-gray-out/287028/14 "2021-11-16T20:29:00Z")

</div>

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