

# AWS SDK for Kotlin support for TLS 1.2
<a name="security-kotlin-tls"></a>

The following information applies only to Java SSL implementation (the default SSL implementation in the AWS SDK for Kotlin targeting the JVM). If you’re using a different SSL implementation, see your specific SSL implementation to learn how to enforce TLS versions.

## TLS support in Java
<a name="tls-support-in-java"></a>

TLS 1.2 is supported starting in Java 7.

## How to check the TLS version
<a name="how-to-check-the-tls-version"></a>

To check what TLS version is supported in your Java virtual machine (JVM), you can use the following code.

```
println(SSLContext.getDefault().supportedSSLParameters.protocols.joinToString(separator = ", "))
```

To see the SSL handshake in action and what version of TLS is used, you can use the system property **javax.net.debug**.

```
-Djavax.net.debug=ssl
```