How to handle SSLEngine::unwrap return Status.BUFFER_UNDERFLOW
Issue
- 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.
Environment
- OpenJDK 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.