Skip to content

Commit af974b2

Browse files
committed
Add Java driver example of forcing TLS 1.2
JAVA-3386
1 parent 83a1262 commit af974b2

File tree

1 file changed

+7
-1
lines changed
  • docs/reference/content/driver/tutorials

1 file changed

+7
-1
lines changed

docs/reference/content/driver/tutorials/ssl.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ updates:
207207
* Java 7
208208
- Starting with
209209
[Update 131](http://www.oracle.com/technetwork/java/javaseproducts/documentation/javase7supportreleasenotes-1601161.html#R170_131),
210-
released October 8, 2016, TSL 1.1 and TLS 1.2 are enabled by default.
210+
released October 8, 2016, TLS 1.1 and TLS 1.2 are enabled by default.
211211
- Starting with
212212
[Update 95](http://www.oracle.com/technetwork/java/javaseproducts/documentation/javase7supportreleasenotes-1601161.html#R170_95),
213213
released January 19, 2016, TLS 1.1 and TLS 1.2 can be enabled by applications via the `jdk.tls.client.protocols` system property.
@@ -222,3 +222,9 @@ updates:
222222

223223
Note that these updates are only available from Oracle via its Java SE commercial support program. Java 7 Update 131
224224
is available via [OpenJDK](http://openjdk.java.net/install/).
225+
226+
### Forcing TLS 1.2
227+
228+
Some applications may want to force only the TLS 1.2 protocol. To do this, set the `jdk.tls.client.protocols` system property to "TLSv1.2".
229+
230+
Java runtime environments prior to Java 8 started to enable the TLS 1.2 protocol only in later updates, as shown in the previous section. For the driver to force the use of the TLS 1.2 protocol with a Java runtime environment prior to Java 8, ensure that the update has TLS 1.2 enabled.

0 commit comments

Comments
 (0)