# Enable HTTPS for Kibana

**URL:** <https://discuss.elastic.co/t/enable-https-for-kibana/197558>\
**Category:** Kibana\
**Created:** [August 30, 2019, 4:56pm UTC](https://discuss.elastic.co/t/enable-https-for-kibana/197558 "2019-08-30T16:56:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdeslam.mazouz](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@abdeslam.mazouz](https://discuss.elastic.co/u/abdeslam.mazouz)\
**Post date:** [August 30, 2019, 4:57pm UTC](https://discuss.elastic.co/t/enable-https-for-kibana/197558/1 "2019-08-30T16:57:00Z")

</div>

I am trying to enable HTTPS for Kibana but it does not work. This is the kibana.yml file I have. Can someone help please?

Thank you

# Kibana is served by a back end server. This setting specifies the port to use.

server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.

# The default is 'localhost', which usually means remote machines will not be able to connect.

# To allow connections from remote users, set this parameter to a non-loopback address.

server.host: "0.0.0.0"

# Enables you to specify a path to mount Kibana at if you are running behind a proxy.

# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath

# from requests it receives, and to prevent a deprecation warning at startup.

# This setting cannot end in a slash.

#server.basePath: ""

# Specifies whether Kibana should rewrite requests that are prefixed with

# `server.basePath` or require that they are rewritten by your reverse proxy.

# This setting was effectively always `false` before Kibana 6.3 and will

# default to `true` starting in Kibana 7.0.

#server.rewriteBasePath: false

# The maximum payload size in bytes for incoming server requests.

#server.maxPayloadBytes: 1048576

# The Kibana server's name. This is used for display purposes.

#server.name: "your-hostname"

# The URLs of the Elasticsearch instances to use for all your queries.

#elasticsearch.hosts: ["[http://localhost:9200](http://localhost:9200)"]

# When this setting's value is true Kibana uses the hostname specified in the server.host

# setting. When the value of this setting is false, Kibana uses the hostname of the host

# that connects to this Kibana instance.

#elasticsearch.preserveHost: true

# Kibana uses an index in Elasticsearch to store saved searches, visualizations and

# dashboards. Kibana creates a new index if the index doesn't already exist.

#kibana.index: ".kibana"

# The default application to load.

#kibana.defaultAppId: "home"

# If your Elasticsearch is protected with basic authentication, these settings provide

# the username and password that the Kibana server uses to perform maintenance on the Kibana

# index at startup. Your Kibana users still need to authenticate with Elasticsearch, which

# is proxied through the Kibana server.

#elasticsearch.username: "kibana"  
#elasticsearch.password: "pass"

# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.

# These settings enable SSL for outgoing requests from the Kibana server to the browser.

server.ssl.enabled: true  
server.ssl.certificate: 'C:\Certs\xxxxxxxx.crt'  
server.ssl.key: 'C:\Certs\xxxxxxx.key'  
#server.ssl.certificate: /path/to/your/server.crt  
#server.ssl.key: /path/to/your/server.key

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 30, 2019, 5:04pm UTC](https://discuss.elastic.co/t/enable-https-for-kibana/197558/2 "2019-08-30T17:04:07Z")

</div>

Which version of Kibana and Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![abdeslam.mazouz](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@abdeslam.mazouz](https://discuss.elastic.co/u/abdeslam.mazouz)\
**Post date:** [September 3, 2019, 3:04pm UTC](https://discuss.elastic.co/t/enable-https-for-kibana/197558/3 "2019-09-03T15:04:43Z")

</div>

I am using 7.3.1

---

<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:** [October 1, 2019, 3:04pm UTC](https://discuss.elastic.co/t/enable-https-for-kibana/197558/4 "2019-10-01T15:04:50Z")

</div>

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