val context = SSLContext.getInstance("TLS") context.init(null, null, null)context.getDefaultSSLParameters.getCipherSuites.toList.foreach(println)
[info] TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
[info] TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
[info] TLS_RSA_WITH_AES_128_CBC_SHA256
[info] TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
[info] TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
[info] TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
[info] TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
[info] TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
[info] TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
[info] TLS_RSA_WITH_AES_128_CBC_SHA
[info] TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
[info] TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
[info] TLS_DHE_RSA_WITH_AES_128_CBC_SHA
[info] TLS_DHE_DSS_WITH_AES_128_CBC_SHA
[info] TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
[info] TLS_ECDHE_RSA_WITH_RC4_128_SHA
[info] SSL_RSA_WITH_RC4_128_SHA
[info] TLS_ECDH_ECDSA_WITH_RC4_128_SHA
[info] TLS_ECDH_RSA_WITH_RC4_128_SHA
[info] TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
[info] TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
[info] TLS_RSA_WITH_AES_128_GCM_SHA256
[info] TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256
[info] TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256
[info] TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
[info] TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
[info] TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
[info] TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
[info] SSL_RSA_WITH_3DES_EDE_CBC_SHA
[info] TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
[info] TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
[info] SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
[info] SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
[info] SSL_RSA_WITH_RC4_128_MD5
[info] TLS_EMPTY_RENEGOTIATION_INFO_SCSV
val cipherSuites = NegotiateNewSession.withCipherSuites("TLS_PSK_WITH_AES_128_CBC_SHA") val clientTls = SslTls(context, cipherSuites, Client)
// eventually produces the following error:
Caused by: java.lang.IllegalArgumentException: Unsupported ciphersuite TLS_PSK_WITH_AES_128_CBC_SHA[info] at sun.security.ssl.CipherSuite.valueOf(CipherSuite.java:237)[info] at sun.security.ssl.CipherSuiteList.<init>(CipherSuiteList.java:82)[info] at sun.security.ssl.SSLEngineImpl.setEnabledCipherSuites(SSLEngineImpl.java:2018)[info] at akka.stream.impl.io.SslTlsCipherActor$$anonfun$applySessionParameters$1.apply(SslTlsCipherActor.scala:156)
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
val cipherSuites = NegotiateNewSession.withCipherSuites("TLS_PSK_WITH_AES_128_CBC_SHA")val clientTls = SslTls(SSLContext.getInstance("TLS", new BouncyCastleProvider), cipherSuites, Client)
// will eventually produce (even if I do Security.addProvider(new BouncyCastleProvider) as Jim suggested
[error] Exception in thread "main" java.security.NoSuchAlgorithmException: no such algorithm: TLS for provider BC[error] at sun.security.jca.GetInstance.getService(GetInstance.java:101)[error] at sun.security.jca.GetInstance.getInstance(GetInstance.java:218)[error] at javax.net.ssl.SSLContext.getInstance(SSLContext.java:236)