diff --git a/examples/ssl-2way-project/build.gradle b/examples/ssl-2way-project/build.gradle index 764c93857..bb8e5a4e9 100644 --- a/examples/ssl-2way-project/build.gradle +++ b/examples/ssl-2way-project/build.gradle @@ -1,4 +1,5 @@ plugins { + id "net.saliman.properties" version "1.5.1" id "com.marklogic.ml-gradle" version "4.5.2" } @@ -77,10 +78,11 @@ if (project.hasProperty("mlKeystore")) { KeyManager[] key = keyManagerFactory.getKeyManagers() // Initialize the SSL context with key and trust managers. - SSLContext sslContext = SSLContext.getInstance("SSLv3") + SSLContext sslContext = SSLContext.getInstance("TLSv1.2") sslContext.init(key, trust, null) restSslContext = sslContext + restTrustManager = trust[0] // This turns off hostname verification unless mlVerifyServerHostname=true if (project.hasProperty("mlVerifyServerHostname") && mlVerifyServerHostname.toBoolean()) {