SSL handshakes randomly fail when using BouncyCastle
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.