{"action":"created","issue":{"url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/issues/316","repository_url":"https://api.github.com/repos/TooTallNate/Java-WebSocket","labels_url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/issues/316/comments","events_url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/issues/316/events","html_url":"https://github.com/TooTallNate/Java-WebSocket/issues/316","id":85243866,"number":316,"title":"Unable to make wss connection - applet based server","user":{"login":"AmsterdamRocks","id":2945146,"avatar_url":"https://avatars1.githubusercontent.com/u/2945146?v=3","gravatar_id":"","url":"https://api.github.com/users/AmsterdamRocks","html_url":"https://github.com/AmsterdamRocks","followers_url":"https://api.github.com/users/AmsterdamRocks/followers","following_url":"https://api.github.com/users/AmsterdamRocks/following{/other_user}","gists_url":"https://api.github.com/users/AmsterdamRocks/gists{/gist_id}","starred_url":"https://api.github.com/users/AmsterdamRocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmsterdamRocks/subscriptions","organizations_url":"https://api.github.com/users/AmsterdamRocks/orgs","repos_url":"https://api.github.com/users/AmsterdamRocks/repos","events_url":"https://api.github.com/users/AmsterdamRocks/events{/privacy}","received_events_url":"https://api.github.com/users/AmsterdamRocks/received_events","type":"User","site_admin":false},"labels":[{"id":232180,"url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":14478585,"url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/labels/wss","name":"wss","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-06-04T19:35:50Z","updated_at":"2017-04-26T09:42:51Z","closed_at":null,"body":"I have integrated the 1.3.1-SNAPSHOT (don't even remember when I pulled this) code into an applet as a server.  I connect to this from a javascript client.  It all works great when my website is not accessed through SSL.  When it is SSL and I try to create the wss:// request then the server always fails the connection with \n\njavax.net.ssl.SSLHandshakeException: no cipher suites in common.  \n\nThis shows up at the same time though I don't know if it is referencing the request coming from my client (likely) or something within the server - \n\n%% Initialized:  [Session-1, SSL_NULL_WITH_NULL_NULL].\n\nI have tried configuring the server as shown in the example/SSLServerExample.java and have also tried a few other options such as a custom trust manager that basically doesn't do any validation.  Nothing seems to have any effect on this.\n\nI have seen some issues opened lately so it seems there is still interest in this project but there hasn't been activity in quite a while so it seems dead.  If there's anyone out there, do you have any suggestions?\n\nThe server class extends the WebSocketServer and initializes as shown below.  When getting the SSLContext I've tried both \"SSL\" and \"TLS\".\n\nSystem.setProperty(\"javax.net.debug\", \"ssl\");\nsuper(1111, new Draft_17());\nURL keyfile = new URL(path to my keystore);\nKeyStore key_store = KeyStore.getInstance(\"JKS\");\nkey_store.load(keyfile.openStream(), \"xxxx\".toCharArray());\nKeyManagerFactory kmf = KeyManagerFactory.getInstance( \"SunX509\" );\nkmf.init( key_store, \"xxxxx\".toCharArray() );\nSSLContext sslContext = SSLContext.getInstance(\"SSL\");\nsslContext.init(kmf.getKeyManagers(), createTrustManager(), new SecureRandom());\nthis.setWebSocketFactory(new DefaultSSLWebSocketServerFactory(sslContext));\nthis.start();\n\nThis is the custom trust manager:\n\nprivate TrustManager[] createTrustManager() {\n    TrustManager[] trustAllCerts = new TrustManager[] {\n            new X509TrustManager() {\n        @Override\n        public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType)\n                                throws java.security.cert.CertificateException\n        {\n            System.out.println(\"Got the client certificates: \" + Arrays.asList(chain));\n        }\n           @Override\n        public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws java.security.cert.CertificateException\n        {\n            System.out.println(\"Got the server certificates: \" + Arrays.asList(chain));\n        }\n        @Override\n        public java.security.cert.X509Certificate[] getAcceptedIssuers()\n        {\n            return null;\n        }\n           }\n      };\n       return trustAllCerts;\n}\n"},"comment":{"url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/issues/comments/297322542","html_url":"https://github.com/TooTallNate/Java-WebSocket/issues/316#issuecomment-297322542","issue_url":"https://api.github.com/repos/TooTallNate/Java-WebSocket/issues/316","id":297322542,"user":{"login":"marci4","id":13464940,"avatar_url":"https://avatars2.githubusercontent.com/u/13464940?v=3","gravatar_id":"","url":"https://api.github.com/users/marci4","html_url":"https://github.com/marci4","followers_url":"https://api.github.com/users/marci4/followers","following_url":"https://api.github.com/users/marci4/following{/other_user}","gists_url":"https://api.github.com/users/marci4/gists{/gist_id}","starred_url":"https://api.github.com/users/marci4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marci4/subscriptions","organizations_url":"https://api.github.com/users/marci4/orgs","repos_url":"https://api.github.com/users/marci4/repos","events_url":"https://api.github.com/users/marci4/events{/privacy}","received_events_url":"https://api.github.com/users/marci4/received_events","type":"User","site_admin":false},"created_at":"2017-04-26T09:42:51Z","updated_at":"2017-04-26T09:42:51Z","body":"Hello @AmsterdamRocks \r\nsorry for the huge delay.\r\nTrying to get through all the old issues....\r\n\r\nI right now cannot reproduce this issue.\r\nCould you please update to 1.3.3?\r\n\r\nGreetings\r\nmarci4"}}
{"actor":{"display_login":"marci4"}}