diff src/goodjava/lucene/backup/BackupIndexWriter.java @ 1506:d80395468b4e

ssl security in code
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 May 2020 18:29:47 -0600
parents f443542d8650
children 86c5e7000ecf
line wrap: on
line diff
--- a/src/goodjava/lucene/backup/BackupIndexWriter.java	Thu May 14 15:49:45 2020 -0600
+++ b/src/goodjava/lucene/backup/BackupIndexWriter.java	Fri May 15 18:29:47 2020 -0600
@@ -11,7 +11,6 @@
 import java.util.Arrays;
 import java.util.concurrent.Executors;
 import java.util.concurrent.ExecutorService;
-import javax.net.ssl.SSLSocketFactory;
 import javax.net.ssl.SSLSocket;
 import goodjava.io.IoUtils;
 import goodjava.rpc.RpcClient;
@@ -142,7 +141,7 @@
 		if( BackupServer.cipherSuites == null ) {
 			socket = new Socket(backupDomain,BackupServer.port);
 		} else {
-			socket = SSLSocketFactory.getDefault().createSocket(backupDomain,BackupServer.port);
+			socket = IoUtils.getSSLSocketFactory().createSocket(backupDomain,BackupServer.port);
 			((SSLSocket)socket).setEnabledCipherSuites(BackupServer.cipherSuites);
 		}
 		return new RpcClient(socket);