# Configuring ssl from letsencrypt

**URL:** <https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871>\
**Category:** Elasticsearch\
**Created:** [January 31, 2018, 6:18pm UTC](https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871 "2018-01-31T18:18:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic\_Gauld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederic_gauld/32/27215_2.png) [@Frederic\_Gauld](https://discuss.elastic.co/u/Frederic_Gauld)\
**Post date:** [January 31, 2018, 6:18pm UTC](https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871/1 "2018-01-31T18:18:11Z")

</div>

Hi! I'm new here, so I apologize in advance for possibly inquiring about something that may seem obvious.

Elasticsearch version : 6.1  
X-Pack version: 6.1

I've been struggling since yesterday to get secured https setup.

I followed the step by step instructions on configuring ssl certificates from letsencrypt in the ES environment: `https://www.elastic.co/blog/x-pack-security-for-elasticsearch-with-lets-encrypt-certificates`

the resulting content of elasticsearch.yml:

```
network.host: www.referr.com

xpack.ssl.key: /etc/elasticsearch/ssl/www.referr.com/privkey.pem
xpack.ssl.certificate: /etc/elasticsearch/ssl/www.referr.com/fullchain.pem

xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.http.ssl.enabled: true

```

(and yes, the paths above do lead to files that are exact copies of the cert files issued by letsencrypt (/etc/letsencrypt/archive/www.referr.com/) )

Elasticsearch status is : running

Problem is: elasticsearch is not listening =\> ( If I run netstat -an | find ":9200", I get nothing)

If I go to https//www.referr.com:9200 with a browser, it throws a security error.

Is there anything in the configs that I've done wrong ?

(note: I had also setup a X.509 certificate by following all the steps at `https://www.elastic.co/guide/en/elasticsearch/reference/6.1/configuring-tls.html#node-certificates` , but that did not successfully allow client-side https requests. (I suppose since the resulting 'P12' certificate is self-signed).

If anyone has some insight, it'd be much appreciated (my site is presently online and broken... with many daily users ...ouch).

Thanks!

---

<div class="post-metadata">

**Author:** ![Frederic\_Gauld](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frederic_gauld/32/27215_2.png) [@Frederic\_Gauld](https://discuss.elastic.co/u/Frederic_Gauld)\
**Post date:** [January 31, 2018, 8:46pm UTC](https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871/2 "2018-01-31T20:46:03Z")

</div>

Oh. My bad. I was simply pointing to the wrong cert files... RESOLVED.

---

<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:** [February 28, 2018, 8:46pm UTC](https://discuss.elastic.co/t/configuring-ssl-from-letsencrypt/117871/3 "2018-02-28T20:46:22Z")

</div>

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