SSL handshakes randomly fail when using BouncyCastle

Solution Unverified - Updated -

Issue

  • SSL/TLS handshakes with Diffie-Hellman cipher suites randomly fail from invalid padding exceptions.
  • IOException in getSession(): javax.net.ssl.SSLHandshakeException: Invalid padding
  • javax.net.ssl.SSLHandshakeException: Invalid Padding length: 79 (number may vary)

Environment

  • Java 6, 7, 8
  • BouncyCastle 1.50,1.51

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