java.lang.IllegalArgumentException: Unsupported ciphersuite TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
Mi código es el siguiente:
Código Java:
Ver original
private SSLServerSocket buildSecureServerSocket(SocketAddress sAdress) { SSLServerSocket res = null; char[] chPwd = sPassWordStore.toCharArray(); keyStore.load(is, chPwd); TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); tmf.init(keyStore); SSLContext ctx = SSLContext.getInstance("TLS"); KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); kmf.init(keyStore, chPwd); ctx.init(kmf.getKeyManagers(), null/*tmf.getTrustManagers()*/, null); SSLServerSocketFactory ssocketFactory = ctx.getServerSocketFactory(); res = (SSLServerSocket) ssocketFactory.createServerSocket(); "SSL_RSA_WITH_RC4_128_SHA", "TLS_DHE_DSS_WITH_AES_128_CBC_SHA", "TLS_DHE_RSA_WITH_AES_128_CBC_SHA", "TLS_KRB5_WITH_RC4_128_SHA", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256", "TLS_RSA_WITH_NULL_SHA256", "TLS_RSA_WITH_AES_128_CBC_SHA256", }; res.setEnabledCipherSuites(enabledCipherSuites); res.setReuseAddress(true); res.bind(sAdress, 100); ex.printStackTrace(); } return res; }
¿¿Alguna idea de como hacer que mi socket soporte TLS 1.2 en java 1.4??