Skip to content

Commit 088621e

Browse files
committed
add SSL
1 parent 223ccc1 commit 088621e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

klass-api/src/main/java/no/ssb/klass/api/config/OpenSearchConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class OpenSearchConfig extends AbstractOpenSearchConfiguration {
3333
public RestHighLevelClient opensearchClient() {
3434
ClientConfiguration clientConfiguration = ClientConfiguration.builder()
3535
.connectedTo(opensearchUri.replace("http://", "").replace("https://", ""))
36+
.usingSsl()
3637
.withBasicAuth(username, password)
3738
.withConnectTimeout(Duration.ofSeconds(10))
3839
.withSocketTimeout(Duration.ofSeconds(5))

0 commit comments

Comments
 (0)