# Logstash 8.15.2 Imap Input plugin SSL Error

**URL:** <https://discuss.elastic.co/t/logstash-8-15-2-imap-input-plugin-ssl-error/381315>\
**Category:** Logstash\
**Created:** [August 25, 2025, 2:59pm UTC](https://discuss.elastic.co/t/logstash-8-15-2-imap-input-plugin-ssl-error/381315 "2025-08-25T14:59:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carellevbt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carellevbt/32/139298_2.png) [@carellevbt](https://discuss.elastic.co/u/carellevbt)\
**Post date:** [August 25, 2025, 2:59pm UTC](https://discuss.elastic.co/t/logstash-8-15-2-imap-input-plugin-ssl-error/381315/1 "2025-08-25T14:59:01Z")

</div>

Hello,

I’m running logstash 8.15.2 and running into the below IMAP input plugin error.

> 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:784)", "org.jruby.ext.openssl.SSLSocket.ossl\_ssl\_setup(SSLSocket.java:221)", "org.jruby.ext.openssl.SSLSocket.connectImpl(SSLSocket.java:299)", "org.jruby.ext.openssl.SSLSocket.connect\_nonblock(SSLSocket.java:288)", "org.jruby.ext.openssl.SSLSocket$INVOKER$i$connect\_nonblock.call(SSLSocket$INVOKER$i$connect\_nonblock.gen)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:466)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:244)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:314)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)", "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:88)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:238)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)", "org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:228)", "org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:476)", "org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:293)", "org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:324)", "org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)", "org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:76)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:164)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)",

I can confirm my IMAP server supports SSL/TLS.

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/4359f876ab3b1b45c3415c69e9d4e0d157119a06.png)

I see from previous posts regarding this error it states to downgrade to logstash 8.9. But this didn’t resolve the problem for everyone.

My config is below

> input {
> 
> ```
> imap {
> 
> host => "imap.gmail.com"
> 
> port => 993
> 
> user => "user@gmail.com"
> 
> password => "${imap_pwd}"
> 
> check_interval => 300
> 
> folder => "INBOX"
> 
> secure => true
> 
> }
> 
> ```
> 
> }

Please advise on how I can resolve this issue.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 25, 2025, 3:01pm UTC](https://discuss.elastic.co/t/logstash-8-15-2-imap-input-plugin-ssl-error/381315/2 "2025-08-25T15:01:29Z")

</div>

> [@carellevbt](#):
>
> Please advise on how I can resolve this issue.

First you need to upgrade to the last version, `8.19.2` to see if this issue still exists or if it was already fixed.

---

<div class="post-metadata">

**Author:** ![carellevbt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carellevbt/32/139298_2.png) [@carellevbt](https://discuss.elastic.co/u/carellevbt)\
**Post date:** [August 25, 2025, 3:03pm UTC](https://discuss.elastic.co/t/logstash-8-15-2-imap-input-plugin-ssl-error/381315/3 "2025-08-25T15:03:32Z")

</div>

ok. Let me try that and will advise

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 25, 2025, 3:50pm UTC](https://discuss.elastic.co/t/logstash-8-15-2-imap-input-plugin-ssl-error/381315/4 "2025-08-25T15:50:11Z")

</div>

It is not clear to me that the imap input is supported. There is an [issue](https://github.com/logstash-plugins/logstash-input-imap/issues/61) that appears to say it will not work with any 8.10+ logstash version due to changes in the libraries it depends upon, and making any updates to the plugin requires re-architecting the test suite. There have been no changes checked in for the last two years, and I wouldn’t hold my breath waiting for any to come.
