gaborgsomogyi commented on code in PR #24919: URL: https://github.com/apache/flink/pull/24919#discussion_r1634845033
########## flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/CustomSSLEngineProvider.java: ########## @@ -59,13 +71,38 @@ public TrustManager[] trustManagers() { .fingerprints(sslCertFingerprints) .build(); - trustManagerFactory.init(loadKeystore(sslTrustStore, sslTrustStorePassword)); + trustManagerFactory.init( + loadKeystore(sslTrustStore, sslTrustStorePassword, sslTrustStoreType)); return trustManagerFactory.getTrustManagers(); - } catch (GeneralSecurityException e) { + } catch (GeneralSecurityException | IOException e) { // replicate exception handling from SSLEngineProvider throw new RemoteTransportException( "Server SSL connection could not be established because SSL context could not be constructed", e); } } + + @Override + public KeyStore loadKeystore(String filename, String password) { + try { + return loadKeystore(filename, password, sslKeyStoreType); + } catch (IOException + | CertificateException + | NoSuchAlgorithmException + | KeyStoreException e) { + throw new RemoteTransportException( Review Comment: I've checked out the code and played with it. I agree that's what we can do. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org