title: How to get list of ciphers supported by remote HTTPS server, from a Java application?
body: <p>How can I obtain a list of ciphers supported by a remote server via a Java JSSE environment.</p>
  
  <p>I want to get a list of weak ciphers supported by the remote server, so that they can be fixed.</p>
  
  <p>I am using <code>SSLSocket</code>, which has a method called <code>getSupportedCipherSuites</code>, but this method returns ciphers that are supported by the client, not a remote server.</p>