jenkins has issues opening certificate :(
This commit is contained in:
parent
a0f05b8774
commit
56d26ed5e4
|
@ -88,11 +88,10 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
|
|||
}
|
||||
|
||||
public static void tcpServerSocket(Logger logger, Function<Socket, Runnable> clientSocketRunnableFactory, int port, String threadName, Listener serverSocketCreationCallback, Function<Integer, ServerSocket> nonSecureSocketFunction) {
|
||||
ServerSocket serverSocket = nonSecureSocketFunction.apply(port);
|
||||
if (serverSocketCreationCallback != null)
|
||||
serverSocketCreationCallback.onResult(null);
|
||||
Runnable runnable = () -> {
|
||||
ServerSocket serverSocket = nonSecureSocketFunction.apply(port);
|
||||
if (serverSocketCreationCallback != null)
|
||||
serverSocketCreationCallback.onResult(null);
|
||||
|
||||
try {
|
||||
while (true) {
|
||||
// Wait for a connection
|
||||
|
|
|
@ -82,6 +82,7 @@ public class Backend {
|
|||
System.setProperty("javax.net.ssl.keyStorePassword", password);
|
||||
System.setProperty("javax.net.ssl.trustStore", file);
|
||||
System.setProperty("javax.net.ssl.trustStorePassword", password);
|
||||
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
|
||||
}
|
||||
|
||||
public void runApplicationConnector(int serverPortForApplications, Listener serverSocketCreationCallback) {
|
||||
|
|
Loading…
Reference in New Issue