Skip to content

Commit 9e22d77

Browse files
author
Joerg Huber
committed
Added debug to log TLS version used.
1 parent 807b14b commit 9e22d77

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

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

209209
try
210210
{
211-
// sslCtx = SSLContext.getInstance("SSL");
212-
sslCtx = SSLContext.getInstance(props.getPropertyAsString("env.tls.version", "SSL"));
211+
String protocol = props.getPropertyAsString("env.tls.version", "SSL");
212+
logger.debug("HTTPS Protocol to use: "+ protocol);
213+
sslCtx = SSLContext.getInstance(protocol);
213214
sslCtx.init(keystoreMgr, truststoreMgr, null);
214215
}
215216
catch (GeneralSecurityException ex)
42 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)