I use the IBM Websphere Everyplace Micro Environment JVM on a Windows Mobile 6 device. My application uses HTTPS connections and I’ve configured everything correctly to use the J9JSSE package for SSL / TLS. Some messages sent over an HTTPS connection work very well, but others throw an exception on the client:
java.io.IOException: invalid padding at com.ibm.oti.crypto.Util.unpadTLS10(Unknown Source) at com.ibm.oti.crypto.CL3BasedProvider.decryptImpl(Unknown Source) at com.ibm.oti.crypto.CL3BasedProvider.cryptUpdate(Unknown Source) at com.ibm.oti.crypto.Key.cryptFinish(Unknown Source) at com.ibm.j9.ssl.CipherAlgorithm.decipher(Unknown Source) at com.ibm.j9.jsse.SSLSocketImpl.readData(Unknown Source) at com.ibm.j9.jsse.SSLSocketImpl$SSLInputStream.read(Unknown Source) at com.ibm.j9.jsse.SSLSocketImpl$SSLInputStream.read(Unknown Source) at java.io.BufferedInputStream.fillbuf(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at com.ibm.oti.net.www.protocol.https.HttpsURLConnection.readln(Unknown Source) at com.ibm.oti.net.www.protocol.https.HttpsURLConnection.readServerResponse(Unknown Source) at com.ibm.oti.net.www.protocol.https.HttpsURLConnection.sendRequest(Unknown Source) at com.ibm.oti.net.www.protocol.https.HttpsURLConnection.doRequest(Unknown Source) at com.ibm.oti.net.www.protocol.https.HttpsURLConnection.getInputStream(Unknown Source)
I tried playing with the Apache Tomcat server to hide the cipher suite that is used, and the only one that will work:
SSL_RSA_WITH_NULL_SHA
but actually it does not do any encryption (null is indicated here), so it is useless to me. The default cipher suite:
SSL_RSA_WITH_3DES_EDE_CBC_SHA
And this, along with all the others that I tried, has this problem. Does anyone know what might cause the problem and how can I solve it?
I found a post on one forum in which someone suggested that there was an error in the J9 CBC implementation, but, strangely enough, there was no information about this anywhere on the Internet. Any help in this matter would be greatly appreciated.
source share