Skip to content
Permalink
Browse files

[CONJ-670] creating SSLContext each time to permit trustStore / keySt…

…ore changed dynamically

(cherry picked from commit af75571)
  • Loading branch information...
rusher committed Jan 14, 2019
1 parent f5df478 commit 5ca80aa11a41c9d46e84f2f49875544dce211422
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/main/java/org/mariadb/jdbc/internal/protocol/AbstractConnectProtocol.java
@@ -341,12 +341,6 @@ public void removeHasMoreResults() {
}

private SSLSocketFactory getSslSocketFactory() throws SQLException {
if (!options.trustServerCertificate
&& options.serverSslCert == null
&& options.trustStore == null
&& options.keyStore == null) {
return (SSLSocketFactory) SSLSocketFactory.getDefault();
}

TrustManager[] trustManager = null;
KeyManager[] keyManager = null;

0 comments on commit 5ca80aa

Please sign in to comment.
You can’t perform that action at this time.