So im trying to write an https server with Java over sockets and i am having problems with the Cipher suites because when i try to start the server i get an SSLHandshakeException: no cipher suites in common even though chrome supports
ECDHE-ECDSA-AES128-GCM-SHA256
and in the output of the Method getDefaultCipherSuites() you can find
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
which i dont know it seems like its pretty much the same only different formatting and here is the Code
SSLServerSocketFactory sslServerSocketFactory =(SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
SSLServerSocket serverSocket = (SSLServerSocket) sslServerSocketFactory.createServerSocket(443);
while (true)
{
SSLSocket client =(SSLSocket) serverSocket.accept();
BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));
HttpRequest httpRequest= new HttpRequest(in);
HttpResponse httpResponse = new HttpResponse();
httpResponse.setHTTPver(httpRequest.getHTTPver());
httpResponse.setStatusCode("200 OK");
httpResponse.setContent_Type("text/html");
httpResponse.setResponseMessage("Hallo Client!");
httpResponse.setAccess_Control_Allow_Origin(httpRequest.getOrigin());
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(client.getOutputStream()));
httpResponse.SendResponse(out);
out.close();
in.close();
client.close();
}