Skip to content

Commit 7ac1038

Browse files
author
Joerg Huber
committed
Use new env.tls.version property to setup SSL context.
1 parent 4abc9e1 commit 7ac1038

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

SIF3InfraREST/SIF3REST/src/main/java/sif3/infra/rest/client/ClientConfigMgr.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ private synchronized SSLContext getSSLContext()
208208

209209
try
210210
{
211-
sslCtx = SSLContext.getInstance("SSL");
211+
// sslCtx = SSLContext.getInstance("SSL");
212+
sslCtx = SSLContext.getInstance(props.getPropertyAsString("env.tls.version", "SSL"));
212213
sslCtx.init(keystoreMgr, truststoreMgr, null);
213214
}
214215
catch (GeneralSecurityException ex)

0 commit comments

Comments
 (0)