# Heartbeat: Ignore SSL errors

**URL:** https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477
**Category:** Beats
**Tags:** heartbeat
**Created:** [March 21, 2017, 5:19pm UTC](https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477 "2017-03-21T17:19:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dosera](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dosera](https://discuss.elastic.co/u/dosera)
#### Post date: [March 21, 2017, 5:19pm UTC](https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477/1 "2017-03-21T17:19:45Z")

</div>

_Input_

```auto
heartbeat.monitors
  - type: 'http'
    schedule: '@every60s'
    urls:
      - https://someurl.com:443/path/
    timeout: 20
    status: 200

```

Now, when the certifcate cannot be validated, I get an error:

_Output_

```auto
error.type: io
error.message: Get https://someurl.com:443/path/: x509 cannot validate certificate for 123.456.78.9 because it doesnt contain any IP SANs

```

As a consequence, `up` is false, even though the server is up.

_Suggestion_

Introduce some flag, maybe `ssl_ignore` that ignores all these certificate errors.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 21, 2017, 6:35pm UTC](https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477/2 "2017-03-21T18:35:52Z")

</div>

Try adding `ssl.verification_mode: none` to the monitor configuration. It should support the same options as listed in the [ssl docs](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-output-ssl.html#_verification_mode).

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 21, 2017, 6:37pm UTC](https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477/3 "2017-03-21T18:37:23Z")

</div>

There's also an open enhancement request to allow monitoring the server's certificate chain.

---

<div class="post-metadata">

### Author: ![dosera](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dosera](https://discuss.elastic.co/u/dosera)
#### Post date: [March 22, 2017, 8:18am UTC](https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477/4 "2017-03-22T08:18:06Z")

</div>

For some reason i didnt notice this in the docs.  
The chain enhancement is also very nice.  
Thanks!

---

<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: [April 19, 2017, 8:18am UTC](https://discuss.elastic.co/t/heartbeat-ignore-ssl-errors/79477/5 "2017-04-19T08:18:22Z")

</div>

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