# Can we run Logstash API endpoint in HTTPS (secured)?

**URL:** https://discuss.elastic.co/t/can-we-run-logstash-api-endpoint-in-https-secured/241251
**Category:** Logstash
**Created:** [July 15, 2020, 8:36am UTC](https://discuss.elastic.co/t/can-we-run-logstash-api-endpoint-in-https-secured/241251 "2020-07-15T08:36:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Agniv\_Gon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agniv_gon/32/71944_2.png) [@Agniv\_Gon](https://discuss.elastic.co/u/Agniv_Gon)
#### Post date: [July 15, 2020, 8:36am UTC](https://discuss.elastic.co/t/can-we-run-logstash-api-endpoint-in-https-secured/241251/1 "2020-07-15T08:36:51Z")

</div>

In my logstash I have configured logstash.yml with below:

```auto
http.host: "0.0.0.0"
http.port: 9000

```

And it is working fine ` [Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9000}`

Is there a way we can set ssl to true and set ssl\_certificate\_authorities, ssl\_certificate, ssl\_key, ssl\_key\_passphrase etc., so that we can run Logstash API endpoint in https like below?  
`https://localhost:9000/?pretty`

---

<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: [August 12, 2020, 8:36am UTC](https://discuss.elastic.co/t/can-we-run-logstash-api-endpoint-in-https-secured/241251/2 "2020-08-12T08:36:55Z")

</div>

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