<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'SSL Socket HTTPS - no cipher suites in common' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'SSL Socket HTTPS - no cipher suites in common' posted on the 'Java Server Pages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 21:32:19 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 21:32:19 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/371412/ssl-socket-https---no-cipher-suites-in-common/</link>
      <description>I'm trying to get an HTTP server I've developed to work over SSL but I'm running into some problems.  I've found some references online about it but I'm hoping to find someone here I can get more help from.&lt;br /&gt;
&lt;br /&gt;
The SSLServerSocket is made without throwing any exceptions.  The code for creating the SSLServerSocket and enabling its ciphers is given near the bottom.  &lt;br /&gt;
&lt;br /&gt;
When a web browser tries to connect, the server throws java.net.ssl.SSLHandshakeException with message "no cipher suites in common".  Following is the stack trace:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
javax.net.ssl.SSLHandshakeException: no cipher suites in common
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio
n(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(U
nknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Un
known Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Un
known Source)
        at com.sun.net.ssl.internal.ssl.ServerHandshaker.choo
seCipherSuite(Unkno
wn Source)
        at com.sun.net.ssl.internal.ssl.ServerHandshaker.clie
ntHello(Unknown Sou
rce)
        at com.sun.net.ssl.internal.ssl.ServerHandshaker.proc
essMessage(Unknown
Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.processLoo
p(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.process_re
cord(Unknown Source
)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRec
ord(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.perform
InitialHandshake(Un
known Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDat
aRecord(Unknown Sou
rce)
        at com.sun.net.ssl.internal.ssl.AppInputStream.read(U
nknown Source)
        at com.sun.net.ssl.internal.ssl.AppInputStream.read(U
nknown Source)
        at fileIO.LEDataInputStream.readLine(LEDataInputStrea
m.java:193)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I'm using Java 1.6 and I've enabled all supported ciphers which makes it a little odd that IE, Firefox, and Opera supposedly support none of("no cipher suites in common").  Here is the code I've used to create the SSLServerSocket:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
            SSLServerSocketFactory sslserversocketfactory =
                    (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
            SSLServerSocket sslSS = (SSLServerSocket)sslserversocketfactory.createServ
erSocket(port);
            String[] suites = sslSS.getSupportedCipherSuites();
            for (String s: suites)
               System.err.println(s);

            sslSS.setEnabledCipherSuites(suites);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I haven't worked extensively with SSL but have had a working client and server using SSL under its protocol.  The difference here is that I didn't make the clients.  Firefox, Opera, and IE each are causing problems and I don't know precisely why.&lt;br /&gt;
&lt;br /&gt;
Have you run into a similar problem with SSL before?  &lt;br /&gt;
&lt;br /&gt;
Do you have tips or suggestions?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/371412/ssl-socket-https---no-cipher-suites-in-common/</guid>
      <pubDate>Wed, 23 Apr 2008 01:23:14 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/409029/re-ssl-socket-https---no-cipher-suites-in-common/#409029</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I'm stuck exactly with the same problem (set up an own HTTPS-Server). Did you come to any conclusion?&lt;br /&gt;
&lt;br /&gt;
cheerioh&lt;br /&gt;
SiS&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/409029/re-ssl-socket-https---no-cipher-suites-in-common/#409029</guid>
      <pubDate>Tue, 10 Nov 2009 08:26:18 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/420193/re-ssl-socket-https---no-cipher-suites-in-common/#420193</link>
      <description>Did ytou solve this problem?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/420193/re-ssl-socket-https---no-cipher-suites-in-common/#420193</guid>
      <pubDate>Sun, 12 Dec 2010 19:55:55 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/420194/re-ssl-socket-https---no-cipher-suites-in-common/#420194</link>
      <description>No.  I never solved it. &lt;br /&gt;
&lt;br /&gt;
Maybe you can register with an official signing company but you have to pay a fee to get that service.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/420194/re-ssl-socket-https---no-cipher-suites-in-common/#420194</guid>
      <pubDate>Sun, 12 Dec 2010 20:07:32 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
  </channel>
</rss>
