Skip to content

Commit

Permalink
=rem akka#19228 make the default TLS version 1.2
Browse files Browse the repository at this point in the history
TLS 1.2 should be preferred and we always have it available by virtue of requiring JDK8 for Akka 2.4.x.
See also https://blogs.oracle.com/java-platform-group/entry/java_8_will_use_tls
  • Loading branch information
ktoso committed Dec 18, 2015
1 parent 8dbade7 commit ea4616c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion akka-docs/rst/java/remoting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ An example of setting up the default Netty based SSL driver as default::
key-store-password = "changeme"
key-password = "changeme"
trust-store-password = "changeme"
protocol = "TLSv1"
protocol = "TLSv1.2"
random-number-generator = "AES128CounterSecureRNG"
enabled-algorithms = [TLS_RSA_WITH_AES_128_CBC_SHA]
}
Expand Down
2 changes: 1 addition & 1 deletion akka-docs/rst/scala/remoting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ An example of setting up the default Netty based SSL driver as default::
key-store-password = "changeme"
key-password = "changeme"
trust-store-password = "changeme"
protocol = "TLSv1"
protocol = "TLSv1.2"
random-number-generator = "AES128CounterSecureRNG"
enabled-algorithms = [TLS_RSA_WITH_AES_128_CBC_SHA]
}
Expand Down
8 changes: 3 additions & 5 deletions akka-remote/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,9 @@ akka {
trust-store-password = "changeme"

# Protocol to use for SSL encryption, choose from:
# Java 6 & 7:
# 'SSLv3', 'TLSv1'
# Java 7:
# 'TLSv1.1', 'TLSv1.2'
protocol = "TLSv1"
# TLS 1.2 is available since JDK7, and default since JDK8:
# https://blogs.oracle.com/java-platform-group/entry/java_8_will_use_tls
protocol = "TLSv1.2"

# Example: ["TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_RSA_WITH_AES_256_CBC_SHA"]
# You need to install the JCE Unlimited Strength Jurisdiction Policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class RemoteConfigSpec extends AkkaSpec(
sslSettings.SSLKeyPassword should ===(Some("changeme"))
sslSettings.SSLTrustStore should ===(Some("truststore"))
sslSettings.SSLTrustStorePassword should ===(Some("changeme"))
sslSettings.SSLProtocol should ===(Some("TLSv1"))
sslSettings.SSLProtocol should ===(Some("TLSv1.2"))
sslSettings.SSLEnabledAlgorithms should ===(Set("TLS_RSA_WITH_AES_128_CBC_SHA"))
sslSettings.SSLRandomNumberGenerator should ===(None)
}
Expand Down
2 changes: 1 addition & 1 deletion akka-remote/src/test/scala/akka/remote/RemotingSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object RemotingSpec {
key-store-password = "changeme"
key-password = "changeme"
trust-store-password = "changeme"
protocol = "TLSv1"
protocol = "TLSv1.2"
random-number-generator = "AES128CounterSecureRNG"
enabled-algorithms = [TLS_RSA_WITH_AES_128_CBC_SHA]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object Configuration {
key-store-password = "changeme"
key-password = "changeme"
trust-store-password = "changeme"
protocol = "TLSv1"
protocol = "TLSv1.2"
random-number-generator = "%s"
enabled-algorithms = [%s]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Ticket1978ConfigSpec extends AkkaSpec("""
settings.SSLKeyPassword should ===(Some("changeme"))
settings.SSLTrustStore should ===(Some("truststore"))
settings.SSLTrustStorePassword should ===(Some("changeme"))
settings.SSLProtocol should ===(Some("TLSv1"))
settings.SSLProtocol should ===(Some("TLSv1.2"))
settings.SSLEnabledAlgorithms should ===(Set("TLS_RSA_WITH_AES_128_CBC_SHA"))
settings.SSLRandomNumberGenerator should ===(Some("AES128CounterSecureRNG"))
}
Expand Down

0 comments on commit ea4616c

Please sign in to comment.