title: SSL Socket : no cipher suites in common error
body: <p>I am getting this error: <code>javax.net.ssl.SSLHandshakeException: no cipher suites in common</code>
  when trying to do an SSL socket communication between java server and android client. 
  I used this line to create the keyfile: <code>keytool -genkey -keystore mySrvKeystore -keyalg RSA</code>
  server code: </p>
  
  <pre><code>System.setProperty("javax.net.ssl.keyStore","mySrvKeystore.key");
  System.setProperty("javax.net.ssl.keyStorePassword","1234567");
  private SSLServerSocketFactory sslserversocketfactory = 
         (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
  private SSLServerSocket sslserversocket;
  private SSLSocket sslsocket;
  sslserversocket= (SSLServerSocket) sslserversocketfactory.createServerSocket(port);
  sslsocket = (SSLSocket) sslserversocket.accept();
  </code></pre>
  
  <p>client code:</p>
  
  <pre><code>System.setProperty("javax.net.ssl.trustStore","mySrvKeystore.key");
  System.setProperty("javax.net.ssl.trustStorePassword","1234567");
  sslsocket = (SSLSocket) sslsocketfactory.createSocket(serverAddr, SERVERPORT);
  private SSLSocketFactory sslsocketfactory = (SSLSocketFactory)
  SSLSocketFactory.getDefault();
  private SSLSocket sslsocket;
  </code></pre>
  
  <p>Any idea how to solve this issue ?
  Is it possible that the connection is failing because the server's certificate is self-signed ?
  Thanks.</p>