Do you know other way to set a specific cipher suite instead of build an ssl server? I have a J2me client which download some files from a Tomcat server.
I have tried set a cipher suite using the tag "ciphers" in the connector of the tomcat configuration file:
<Connector port="8443" maxHttpHeaderSize="8192" ciphers="TLS_RSA_WITH_RC4_128_MD5"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
But it did not work. Any other ideas?
No... my Server.xml has just this connector specified:
<Connector port="8443" maxHttpHeaderSize="8192" ciphers="RSA_RC4_ 128_ MD5
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
Can you try it agains the following server instead of Tomcat:
SSLServerSocketss = (SSLServerSocket)SSLServerSocketFactory.getDefault().createServerSocket(8443);
ss.setEnabledCipherSuites(new String[]{"TLS_RSA_WITH_RC4_128_MD5"});
SSLSockets = (SSLSocket)ss.accept();
System.out.println("Accepted session cipher suite="+s.getSession().getCipherSuite());
s.close();
ss.close();
ejp,
Finally I got it!
What I needed to do was use "SSL_RSA_WITH_RC4_128_MD5" cipher suite in the tomcat connector instead of "TLS_RSA_WITH_RC4_128_MD5".
But I am not able to work with any cipher suite. I am gonna find out now what cipher suites are mandatory in J2ME ssl`s implementations.
thanks.
Message was edited by:
Pedpano