I am looking for cluster setup using akka for my play framework projects. I want to know how can i support plugable SSL transport support. I was looking at http://doc.akka.io/docs/akka/snapshot/scala/remoting.html and tired some configuration.
Here is my sample configuration:
akka {
loglevel = ERROR
actor.provider = "akka.cluster.ClusterActorRefProvider"
remote {
enabled-transports = ["akka.remote.netty.tcp"]
enabled-transports = [akka.remote.netty.ssl]
netty.ssl.tcp {
hostname = "127.0.0.1"
enable-ssl = true
}
netty.ssl.security {
key-store = "mykeystore"
trust-store = "mytruststore"
key-store-password = "changeme"
key-password = "changeme"
trust-store-password = "changeme"
protocol = "TLSv1"
random-number-generator = "AES128CounterSecureRNG"
enabled-algorithms = [TLS_RSA_WITH_AES_128_CBC_SHA]
}
}
cluster {
auto-down = on
akka.cluster.auto-down-unreachable-after = 5s
}
}
I start server like this :
activator -Dnode.id=1 -Dhttp.port=9000 -Dakka.remote.netty.tcp.port=2551 -Dakka.cluster.seed-nodes.0="akka.ssl.tcp://[email protected]:2551" run
I am not sure what more i am missing. I can't see my events when my member is UP
I referred the implementation from : https://github.com/zarinfam/play-akka-cluster-pub-sub
Please suggest.
I had used folloing configuration.Also generated proper certificates following : http://docs.oracle.com/cd/E19528-01/819-4733/6n6s6u1gl/index.html Also note that : You need to set up the keystore and truststore, define the SSL/TLS version to be used and set the enabled algorithms. These settings correspond directly to the JSSE configuration, which are documented here : http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html
Here is my configuration:
Hope this helps anyone in future.
Cheers!