Hello Seth!
We either get the SSLHandshake exception like below or the following:
javax.net.ssl.SSLException: Inbound closed before receiving peer's
close_notify: possible truncation attack?
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException
(Alerts.java:166)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal
(SSLEngineImpl.java:1356)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal
(SSLEngineImpl.java:1324)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.closeInbound
(SSLEngineImpl.java:1263)
at flex.messaging.socketserver.SSLConnection.handshake
(SSLConnection.java:290)
at flex.messaging.socketserver.Connection$ConnectionReader.run
(Connection.java:761)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
er.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
er.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
I have now found out, that the SSLHandshake exception occurs if an
AIR Client installed on Vista is started. On one Vista client we
always get the exception. On other Vista clients the problem occurs
sometimes.
We use a self signed cert.
Best regards,
Taze
--- In [email protected], "taze170171" <taze170...@...>
wrote:
>
> Hello!
>
> We are using AIR, LCDS (running on a JBoss) and an RTMPS
connection.
> Sometimes we get the following exception, when the AIR client tries
> to connect to the server:
>
> [Flex]Thread[my-rtmps-SocketServer-WorkerThread-88,5,jboss] failed
to
> read Connection 'xxx' or process the data; Connection is in
> the 'Handshaking' state and will be forced closed.
> javax.net.ssl.SSLHandshakeException: Invalid padding
> at com.sun.net.ssl.internal.ssl.Alerts.getSSLException
> (Alerts.java:150)
> at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal
> (SSLEngineImpl.java:1417)
> at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord
> (SSLEngineImpl.java:874)
> at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord
> (SSLEngineImpl.java:787)
> at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap
> (SSLEngineImpl.java:663)
> at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:566)
> at flex.messaging.socketserver.SSLConnection.handshake
> (SSLConnection.java:301)
> at flex.messaging.socketserver.Connection$ConnectionReader.run
> (Connection.java:761)
> at
>
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
> er.runTask(ThreadPoolExecutor.java:665)
> at
>
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
> er.run(ThreadPoolExecutor.java:690)
> at java.lang.Thread.run(Thread.java:595)
>
> Caused by: javax.crypto.BadPaddingException: Padding length
invalid:
> 244
> at com.sun.net.ssl.internal.ssl.CipherBox.removePadding
> (CipherBox.java:442)
> at com.sun.net.ssl.internal.ssl.CipherBox.decrypt
(CipherBox.java:290)
> at com.sun.net.ssl.internal.ssl.InputRecord.decrypt
> (InputRecord.java:153)
> at com.sun.net.ssl.internal.ssl.EngineInputRecord.decrypt
> (EngineInputRecord.java:238)
> at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readRecord
> (SSLEngineImpl.java:856)
> ... 8 more
>
> Can anybody help?
>
> Thanks in advance,
> Taze
>