# Http\_poller and ignore SSL Validation

**URL:** https://discuss.elastic.co/t/http-poller-and-ignore-ssl-validation/364986
**Category:** Logstash
**Created:** [August 15, 2024, 9:18pm UTC](https://discuss.elastic.co/t/http-poller-and-ignore-ssl-validation/364986 "2024-08-15T21:18:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rmoss25](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rmoss25](https://discuss.elastic.co/u/rmoss25)
#### Post date: [August 15, 2024, 9:18pm UTC](https://discuss.elastic.co/t/http-poller-and-ignore-ssl-validation/364986/1 "2024-08-15T21:18:32Z")

</div>

Hi,  
How do you ignore the SSL validation when using the http\_poller plugin? I get the following error when I try to pull API events from a reputable sites REST API. The site is using a valid certificate as its a well know security site so I am not sure why its failing to begin with. Am I structuring my input statement incorrectly as it using APIv4 Access and a Key and valid certificate?  
I get the following error:

 ![sslerror](https://us1.discourse-cdn.com/elastic/original/3X/6/1/6171f47711224b1577694a997e820ce470d82f0a.png)

I have tried the following configurations in my Input config.

```auto
input {
  http_poller {
    urls => {
      test_api => {
        method => "get"
        url => "https://api.example.com/v4/"
        auth => {
          user => "<key ID>"
          password => "<Secret>"
          ssl_certificate_verification => false
        }
        headers => {
          Accept => "application/json"
        }
      }
    }
    request_timeout => 60
    schedule => { cron => "* * * * * UTC" }
    codec => "json"
  }
}

```

AND

```auto
input {
  http_poller {
    urls => {
      test_api => {
        method => "get"
        url => "https://api.example.com/v4/"
        auth => {
          user => "<key ID>"
          password => "<Secret>"
          ssl => true
		  ssl_certificate_verification => false
        }
        headers => {
          Accept => "application/json"
        }
      }
    }
    request_timeout => 60
    schedule => { cron => "* * * * * UTC" }
    codec => "json"
  }
}

```

As well as

```auto
input {
  http_poller {
    urls => {
      test_api => {
        method => "get"
        url => "https://api.example.com/v4/"
        auth => {
          user => "<key ID>"
          password => "<Secret>"
		  ssl_verification_mode => none
        }
        headers => {
          Accept => "application/json"
        }
      }
    }
    request_timeout => 60
    schedule => { cron => "* * * * * UTC" }
    codec => "json"
  }
}

```

But I always get this error. I am not sure why when the site is using a valid certificate. I am able to connect to the API by using curl -k to ignore the ssl certificate so is there a Logstash equivalent?
