# Password of the Encrypted Key for HTTP Output

**URL:** <https://discuss.elastic.co/t/password-of-the-encrypted-key-for-http-output/364836>\
**Category:** Logstash\
**Created:** [August 13, 2024, 2:28pm UTC](https://discuss.elastic.co/t/password-of-the-encrypted-key-for-http-output/364836 "2024-08-13T14:28:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tepus](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@tepus](https://discuss.elastic.co/u/tepus)\
**Post date:** [August 13, 2024, 2:28pm UTC](https://discuss.elastic.co/t/password-of-the-encrypted-key-for-http-output/364836/1 "2024-08-13T14:28:19Z")

</div>

Dear Elastic Community,

The version of the Logstash client is 8.5.3.

We're trying to set a Logstash-to-Logstash connection with the following settings in the pipeline of the client:

```auto
output {

 http {

   format => json_batch

   http_compression => true

   id => "id_of_the_output"

   url => "https://$logstash_server_url:$logstash_server_port"

   client_cert => "the/path/to/the/certificate"

   client_key => "the/path/to/the/key"

   cacert => "the/path/to/the/certificate/of/the/certificate_authority"

}

}

```

However, the private key is password-protected. What setting to use for putting the password in the pipeline?

We tried with _client\_key\_password_ and _client\_key\_passphrase_ without success.

Please help.

Best regards,  
Milos Tepavcevic

---

<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:** [August 13, 2024, 2:48pm UTC](https://discuss.elastic.co/t/password-of-the-encrypted-key-for-http-output/364836/2 "2024-08-13T14:48:18Z")

</div>

> [@tepus](#):
>
> However, the private key is password-protected. What setting to use for putting the password in the pipeline?

If I'm not wrong this is not supported, there is no option to pass the passphrase for the client key.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [August 13, 2024, 4:15pm UTC](https://discuss.elastic.co/t/password-of-the-encrypted-key-for-http-output/364836/3 "2024-08-13T16:15:49Z")

</div>

Have you tried with `ssl_keystore_path` and `ssl_truststore_password`?  
Why are you using http? Have you tried [Logstash output plugin](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-logstash.html)?
