jenkins has issues opening certificate :(

This commit is contained in:
rusefi 2020-07-18 00:03:55 -04:00
parent a0f05b8774
commit 56d26ed5e4
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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) {