Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
bc1992c3
Commit
bc1992c3
authored
1 year ago
by
eugene.livis
Browse files
Options
Downloads
Patches
Plain Diff
More work
parent
6566119b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java
+2
-1
2 additions, 1 deletion
...java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java
bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java
+4
-2
4 additions, 2 deletions
bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java
with
6 additions
and
3 deletions
bindings/java/src/org/sleuthkit/datamodel/CaseDatabaseFactory.java
+
2
−
1
View file @
bc1992c3
...
@@ -718,7 +718,8 @@ Connection getConnection(String databaseName) throws TskCoreException {
...
@@ -718,7 +718,8 @@ Connection getConnection(String databaseName) throws TskCoreException {
// NonValidatingFactory avoids hostname verification.
// NonValidatingFactory avoids hostname verification.
// sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it cant be encrypted.
// sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it cant be encrypted.
// In this mode, the JDBC driver accepts all server certificates.
// 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.NonValidatingFactory&sslmode=require");
url
.
append
(
"?ssl=true&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory&sslmode=verify-ca"
);
}
}
Connection
conn
;
Connection
conn
;
...
...
This diff is collapsed.
Click to expand it.
bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java
+
4
−
2
View file @
bc1992c3
...
@@ -299,7 +299,8 @@ public static void tryConnect(CaseDbConnectionInfo info) throws TskCoreException
...
@@ -299,7 +299,8 @@ public static void tryConnect(CaseDbConnectionInfo info) throws TskCoreException
// NonValidatingFactory avoids hostname verification.
// NonValidatingFactory avoids hostname verification.
// sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it cant be encrypted.
// sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it cant be encrypted.
// In this mode, the JDBC driver accepts all server certificates.
// 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.NonValidatingFactory&sslmode=require";
connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory&sslmode=verify-ca";
}
}
Connection conn = DriverManager.getConnection(connectionURL, info.getUserName(), info.getPassword()); //NON-NLS
Connection conn = DriverManager.getConnection(connectionURL, info.getUserName(), info.getPassword()); //NON-NLS
if (conn != null) {
if (conn != null) {
...
@@ -13410,7 +13411,8 @@ private final class PostgreSQLConnections extends ConnectionPool {
...
@@ -13410,7 +13411,8 @@ private final class PostgreSQLConnections extends ConnectionPool {
// NonValidatingFactory avoids hostname verification.
// NonValidatingFactory avoids hostname verification.
// sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it cant be encrypted.
// sslmode=require: This mode makes the encryption mandatory and also requires the connection to fail if it cant be encrypted.
// In this mode, the JDBC driver accepts all server certificates.
// 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.NonValidatingFactory&sslmode=require";
connectionURL += "?ssl=true&sslfactory=org.postgresql.ssl.DefaultJavaSSLFactory&sslmode=verify-ca";
}
}
comboPooledDataSource.setJdbcUrl(connectionURL);
comboPooledDataSource.setJdbcUrl(connectionURL);
comboPooledDataSource.setUser(info.getUserName());
comboPooledDataSource.setUser(info.getUserName());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment