How to handle SSLEngine::unwrap return Status.BUFFER_UNDERFLOW

Solution In Progress - Updated -


  • How to handle BUFFER_UNDERFLOW for TLS 1.2 and 1.3.
  • Getting HandshakeStatus BUFFER_UNDERFLOW after calling engine.unwrap even though the HandshakeStatus was NEED_UNWRAP before calling engine.unwrap over TLS 1.2.


  • OpenJDK 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content