diff --git a/bindings/java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java b/bindings/java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java index 075bcac5aad437fa6f747176d72ec67b15e42b2e..6e3ffe683a3de80444729634d29f25d066ae27c6 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java +++ b/bindings/java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java @@ -718,8 +718,7 @@ Connection getConnection(String databaseName) throws TskCoreException { // NonValidatingFactory avoids hostname verification. // sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it can�t be encrypted. // In this mode, the JDBC driver accepts all server certificates. - //url.append("?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require"); - url.append("?ssl=true&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory&sslmode=verify-ca"); + url.append("?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require"); } Connection conn; diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index 3a9985ccd59147aba22f4b430341101751f2504e..01e59f8854e24c692cb3f5765f3d0c8a5a598833 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -299,8 +299,7 @@ public static void tryConnect(CaseDbConnectionInfo info) throws TskCoreException // NonValidatingFactory avoids hostname verification. // sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it can�t be encrypted. // In this mode, the JDBC driver accepts all server certificates. - //connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require"; - connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory&sslmode=verify-ca"; + connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require"; } Connection conn = DriverManager.getConnection(connectionURL, info.getUserName(), info.getPassword()); //NON-NLS if (conn != null) { @@ -13411,8 +13410,7 @@ private final class PostgreSQLConnections extends ConnectionPool { // NonValidatingFactory avoids hostname verification. // sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it can�t be encrypted. // In this mode, the JDBC driver accepts all server certificates. - //connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require"; - connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory&sslmode=verify-ca"; + connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory&sslmode=require"; } comboPooledDataSource.setJdbcUrl(connectionURL); comboPooledDataSource.setUser(info.getUserName());