diff --git a/src/main/java/net/snowflake/client/core/SessionUtil.java b/src/main/java/net/snowflake/client/core/SessionUtil.java index d945a7502..e47a02c32 100644 --- a/src/main/java/net/snowflake/client/core/SessionUtil.java +++ b/src/main/java/net/snowflake/client/core/SessionUtil.java @@ -382,8 +382,8 @@ else if (authenticator == ClientAuthnDTO.AuthenticatorType.SNOWFLAKE_JWT) String host = url.getHost(); logger.debug("HOST: {}", host); String ocspCacheServerUrl = String.format( - "http://ocsp%s/%s", - host.substring(host.indexOf('.')), + "http://ocsp.%s/%s", + host, SFTrustManager.CACHE_FILE_NAME); logger.debug("OCSP Cache Server for Privatelink: {}", ocspCacheServerUrl);