Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20347

How to force TLS version?

$
0
0

I don’t actually know how to do that, but I would assume Gradle just uses the default security provider in Java for creating HTTPS connections. So you should be able to both enforce TLS 1.3 and disable specific ciphers by tweaking the java.security file in the JDK you use. Alternatively, at least for enforcing the TLS version, you can probably also do it by setting the jdk.tls.client.protocols property in your Gradle options.

Maybe :slight_smile:

Note that there is nasty a bug in TLS 1.3 for older versions of Java 11 and Java 12, so be sure you are using a version that is relatively new (e.g. 11.0.5).


Viewing all articles
Browse latest Browse all 20347

Trending Articles