This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 5bea94ca SSLAwareMongoClient: Use the TLSv1.2 as default for SSL
Context
5bea94ca is described below
commit 5bea94ca68f5041edf8cad0b888234ffc3fae662
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Nov 14 12:02:19 2023 +0100
SSLAwareMongoClient: Use the TLSv1.2 as default for SSL Context
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../org/apache/camel/kamelets/utils/mongodb/SslAwareMongoClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/library/camel-kamelets-utils/src/main/java/org/apache/camel/kamelets/utils/mongodb/SslAwareMongoClient.java
b/library/camel-kamelets-utils/src/main/java/org/apache/camel/kamelets/utils/mongodb/SslAwareMongoClient.java
index e85ba448..d13163ca 100644
---
a/library/camel-kamelets-utils/src/main/java/org/apache/camel/kamelets/utils/mongodb/SslAwareMongoClient.java
+++
b/library/camel-kamelets-utils/src/main/java/org/apache/camel/kamelets/utils/mongodb/SslAwareMongoClient.java
@@ -78,7 +78,7 @@ public class SslAwareMongoClient implements MongoClient {
builder.invalidHostNameAllowed(true);
SSLContext sc = null;
try {
- sc = SSLContext.getInstance("SSL");
+ sc = SSLContext.getInstance("TLSv1.2");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("Error
instantiating trust all SSL context.", e);
}