diff --git a/pom.xml b/pom.xml
index a8490a9..e0e4f99 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,7 +31,7 @@
UTF-8
1.0.2.5
- 1.5.2
+ 1.5.6-SNAPSHOT
@@ -154,6 +154,20 @@
org.folio
folio-tls-utils
${folio-tls-utils.version}
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+ org.springframework.boot
+ spring-boot
+
+
+ org.springframework.boot
+ spring-boot-starter-log4j2
+
+
diff --git a/src/main/java/org/folio/edge/core/utils/OkapiClient.java b/src/main/java/org/folio/edge/core/utils/OkapiClient.java
index f3a1fd3..8b9840f 100644
--- a/src/main/java/org/folio/edge/core/utils/OkapiClient.java
+++ b/src/main/java/org/folio/edge/core/utils/OkapiClient.java
@@ -24,6 +24,7 @@
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;
+import static org.folio.common.utils.tls.Utils.IS_HOSTNAME_VERIFICATION_DISABLED;
import static org.folio.edge.core.Constants.APPLICATION_JSON;
import static org.folio.edge.core.Constants.HEADER_API_KEY;
import static org.folio.edge.core.Constants.JSON_OR_TEXT;
@@ -85,7 +86,7 @@ protected OkapiClient(Vertx vertx, String okapiURL, String tenant, int timeout,
.setSsl(true);
if (trustOptions != null) {
options.setTrustOptions(trustOptions);
- options.setVerifyHost(false); //Hardcoded now. Later it could be configurable using env vars.
+ options.setVerifyHost(!IS_HOSTNAME_VERIFICATION_DISABLED);
}
client = WebClientFactory.getWebClient(vertx, options);
initDefaultHeaders();