From 3259fe83ff92b67f9a0354da3d46b91b81d5be12 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 24 Dec 2024 16:15:11 +0900 Subject: [PATCH] fixup! Load default Java truststore for --use-system-truststore --- .../trino-client/src/main/java/io/trino/client/OkHttpUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/trino-client/src/main/java/io/trino/client/OkHttpUtil.java b/client/trino-client/src/main/java/io/trino/client/OkHttpUtil.java index 77c5121b3943..0ea2481b6fcc 100644 --- a/client/trino-client/src/main/java/io/trino/client/OkHttpUtil.java +++ b/client/trino-client/src/main/java/io/trino/client/OkHttpUtil.java @@ -305,7 +305,7 @@ else if (osName.contains("Mac")) { KeyStore trustStore; if (systemTrustStoreType.isPresent()) { - trustStore = KeyStore.getInstance(systemTrustStoreType.orElseGet(KeyStore::getDefaultType)); + trustStore = KeyStore.getInstance(systemTrustStoreType.get()); trustStore.load(null, null); } else {