All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.codemods.UpgradeSSLEngineTLSCodemod.description.md Maven / Gradle / Ivy

There is a newer version: 0.97.3
Show newest version
This change ensures that `SSLEngine#setEnabledProtocols()` retrieves a safe version of Transport Layer Security (TLS), which is necessary for safe SSL connections.

TLS v1.0 and TLS v1.1 both have serious issues and are considered unsafe. Right now, the only safe version to use is 1.2.

Our change involves modifying the arguments to `setEnabledProtocols()` to return TLSv1.2 when it can be confirmed to be another, less secure value:

```diff
  SSLEngine sslEngine = ...;
- sslEngine.setEnabledProtocols(new String[] { "TLSv1.1" });
+ sslEngine.setEnabledProtocols(new String[] { "TLSv1.2" });
```

There is no functional difference between the unsafe and safe versions, and all modern servers offer TLSv1.2.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy