# Logstash.input.imap error SSL

**URL:** <https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772>\
**Category:** Logstash\
**Created:** [December 21, 2023, 8:27am UTC](https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772 "2023-12-21T08:27:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![drissm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drissm/32/130207_2.png) [@drissm](https://discuss.elastic.co/u/drissm)\
**Post date:** [December 21, 2023, 8:27am UTC](https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772/1 "2023-12-21T08:27:43Z")

</div>

Hello, i have a logstash v8.11.3 with input.imap plugin v3.2.1. Here is my pipeline and the ssl error i have

```auto
input {
  imap {
    host => "myhost"
    password => "mypassword"
    port => 993
    user => "myemail@mydomain"
    secure => true
    check_interval => 30
    uid_tracking => true
  }
}

```

```auto
[2023-12-21T09:19:42,569][ERROR][logstash.inputs.imap][main][f2fffe56680f84257f6d30afab8445a5b3dade022c55fe3cfa8076e0bdbb0015] Encountered error Java::JavaLang::NullPointerException {:message=>"Cannot invoke \"org.jruby.ext.openssl.SSLContext$InternalContext.getSSLContext()\" because \"this.internalContext\" is null", :backtrace=>["org.jruby.ext.openssl.SSLContext.createSSLEngine(SSLContext.java:782)",....

```

Is anyone can help me please ?

---

<div class="post-metadata">

**Author:** ![macteo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/macteo/32/8141_2.png) [@macteo](https://discuss.elastic.co/u/macteo)\
**Post date:** [January 10, 2024, 9:15am UTC](https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772/2 "2024-01-10T09:15:48Z")

</div>

The issue seems to be widespread [Plugin doesn't work with Logstash 8.10+ · Issue #61 · logstash-plugins/logstash-input-imap · GitHub](https://github.com/logstash-plugins/logstash-input-imap/issues/61)

---

<div class="post-metadata">

**Author:** ![drissm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drissm/32/130207_2.png) [@drissm](https://discuss.elastic.co/u/drissm)\
**Post date:** [January 11, 2024, 7:55am UTC](https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772/4 "2024-01-11T07:55:25Z")

</div>

Thanks for your response, but it seems to be not the same error, i don't have the `--net/smtp` error.

---

<div class="post-metadata">

**Author:** ![drissm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drissm/32/130207_2.png) [@drissm](https://discuss.elastic.co/u/drissm)\
**Post date:** [January 18, 2024, 3:51pm UTC](https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772/5 "2024-01-18T15:51:22Z")

</div>

I finally uninstall Logstash 8.11 and install Logstash 8.9 to solve the problem.

---

<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 15, 2024, 3:52pm UTC](https://discuss.elastic.co/t/logstash-input-imap-error-ssl/349772/6 "2024-02-15T15:52:06Z")

</div>

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